sys/prctl.h \
sys/queue.h \
sys/sockio.h \
+ sys/socket.h \
+ sys/syscall.h \
sys/file.h \
sys/ioctl.h \
sys/stat.h \
AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
+AC_CHECK_DECL([llseek],
+ [AC_DEFINE(HAVE_LLSEEK_PROTOTYPE, 1,
+ [Define to 1 if have llseek prototype])],
+ [],
+ [#include <unistd.h>])
+
+AC_CHECK_DECL([lseek64],
+ [AC_DEFINE(HAVE_LSEEK64_PROTOTYPE, 1,
+ [Define to 1 if have lseek64 prototype])],
+ [],
+ [#define _LARGEFILE_SOURCE
+ #define _LARGEFILE64_SOURCE
+ #include <unistd.h>])
+
AC_CHECK_FUNCS(
[inet_aton \
futimens \
+ fstat64 \
fsync \
getdomainname \
get_current_dir_name \
sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
#else
#define ifreq_size(i) sizeof(struct ifreq)
-#endif /* HAVE_SA_LEN*/
+#endif /* HAVE_SA_LEN */
sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
if (sd < 0) {