Fix build error
authorAlan T. DeKok <aland@freeradius.org>
Tue, 4 Sep 2012 13:12:52 +0000 (15:12 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 5 Sep 2012 12:53:32 +0000 (14:53 +0200)
src/include/modpriv.h

index c3fc74c..3128cfe 100644 (file)
 
 #ifdef WITH_SYSTEM_LTDL
 #define WITH_LIBLTDL
-#endif
-
-#ifdef WITH_LIBLTDL
 #include <ltdl.h>
-#endif
 
 #else
 #ifndef HAVE_DLFCN_H
 #error FreeRADIUS needs either libltdl, or a working dlopen()
-#endif
+#endif /* WITH_LIBLTDL */
 #endif /* WITH_LIBLTDL */
 
 #ifdef __cplusplus
@@ -38,7 +34,7 @@ const char *lt_dlerror(void);
 #define LTDL_SET_PRELOADED_SYMBOLS(_x)
 #define lt_dlexit(_x)
 #define lt_dlsetsearchpath(_x)
-#endif
+#endif /* WITH_LIBLTDL */
 
 /*
  *     Keep track of which modules we've loaded.