]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/compat.h
Remove inet_aton from compatibility library
[netatalk.git] / include / atalk / compat.h
index f66c3a3145977960869eb6c17ad76aba39ac8c6e..a2d318f43a4f81942210a3a922941224f01e043b 100644 (file)
@@ -6,11 +6,11 @@
  * are checks for EINTR everywhere. 
  */
 
-#include <sys/cdefs.h>
-#include <signal.h>
-
+#ifdef HAVE_CONFIG_H
 #include "config.h"
 
+#include <signal.h>
+
 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
 extern char *getusershell (void);
 #endif
@@ -42,11 +42,6 @@ extern int pselect(int, fd_set * restrict, fd_set * restrict,
 extern int flock (int, int);
 #endif
 
-#ifndef HAVE_INET_ATON
-struct in_addr;
-extern int inet_aton(const char *, struct in_addr *);
-#endif
-
 #ifndef HAVE_STRNLEN
 extern size_t strnlen(const char *s, size_t n);
 #endif
@@ -59,3 +54,4 @@ extern size_t strlcpy (char *, const char *, size_t);
 extern size_t strlcat (char *, const char *, size_t);
 #endif
 
+#endif