X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=include%2Fatalk%2Fcompat.h;h=a2d318f43a4f81942210a3a922941224f01e043b;hp=1c217c4ca752d4e34fc5a552c06ff16e9c2514ba;hb=68269a1c176226cdd4fa347f4e06caf59a5466f6;hpb=6f45d8eaada82e401ecde525c689a67148b3ba1e diff --git a/include/atalk/compat.h b/include/atalk/compat.h index 1c217c4c..a2d318f4 100644 --- a/include/atalk/compat.h +++ b/include/atalk/compat.h @@ -6,10 +6,11 @@ * are checks for EINTR everywhere. */ -#include - +#ifdef HAVE_CONFIG_H #include "config.h" +#include + #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL) extern char *getusershell (void); #endif @@ -41,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 @@ -58,3 +54,4 @@ extern size_t strlcpy (char *, const char *, size_t); extern size_t strlcat (char *, const char *, size_t); #endif +#endif