]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/module.c
Ignore object files
[netatalk.git] / libatalk / util / module.c
index afe2c027fa40f415c60ecdf67a5f2b4837fb545b..1e370373b3f810a7de13ce96b8f72b0f4d50ea0b 100644 (file)
@@ -1,14 +1,16 @@
+/*
+ * $Id: module.c,v 1.5 2003-02-17 02:03:12 srittau Exp $
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
 #include <stdlib.h>
 #include <string.h>
 #include <atalk/util.h>
 
-static int _mod_dummy;
-
-#ifdef NO_DLFCN_H
+#ifndef HAVE_DLFCN_H
 #ifdef MACOSX_SERVER
 #include <mach-o/dyld.h>
 
@@ -41,13 +43,13 @@ void mod_close(void *module)
 {
   NSUnLinkModule(module, FALSE);
 }
-#endif
+#endif /* MACOSX_SERVER */
 
-#else
+#else /* HAVE_DLFCN_H */
 
-#ifdef DLSYM_PREPEND_UNDERSCORE
 #include <dlfcn.h>
 
+#ifdef DLSYM_PREPEND_UNDERSCORE
 void *mod_symbol(void *module, const char *name)
 {
    void *symbol;
@@ -67,4 +69,4 @@ void *mod_symbol(void *module, const char *name)
    return symbol;
 }
 #endif /* DLSYM_PREPEND_UNDERSCORE */
-#endif /* NO_DLFCN */
+#endif /* HAVE_DLFCN_H */