[f]truncate64 support
[qemu] / slirp / slirp_config.h
index 51fc951..a0795ef 100644 (file)
 
 /* Define if you have sys/ioctl.h */
 #undef HAVE_SYS_IOCTL_H
+#ifndef _WIN32
+#define HAVE_SYS_IOCTL_H
+#endif
 
 /* Define if you have sys/filio.h */
 #undef HAVE_SYS_FILIO_H
+#ifdef __APPLE__
+#define HAVE_SYS_FILIO_H
+#endif
 
 /* Define if you have strerror */
 #define HAVE_STRERROR
@@ -90,6 +96,9 @@
 
 /* Define if iovec needs to be declared */
 #undef DECLARE_IOVEC
+#ifdef _WIN32
+#define DECLARE_IOVEC
+#endif
 
 /* Define if a declaration of sprintf/fprintf is needed */
 #undef DECLARE_SPRINTF
 #undef HAVE_SYS_WAIT_H
 
 /* Define if you have sys/select.h */
+#undef HAVE_SYS_SELECT_H
+#ifndef _WIN32
 #define HAVE_SYS_SELECT_H
+#endif
 
 /* Define if you have strings.h */
 #define HAVE_STRING_H
 
 /* Define if you have arpa/inet.h */
+#undef HAVE_ARPA_INET_H
+#ifndef _WIN32
 #define HAVE_ARPA_INET_H
+#endif
 
 /* Define if you have sys/signal.h */
 #undef HAVE_SYS_SIGNAL_H
 #define SIZEOF_INT 4
 
 /* Define to sizeof(char *) */
-/* XXX: patch it */
-#define SIZEOF_CHAR_P 4
+#define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
 
 /* Define if you have random() */
 #undef HAVE_RANDOM
 #undef HAVE_SRANDOM
 
 /* Define if you have inet_aton */
+#undef HAVE_INET_ATON
+#ifndef _WIN32
 #define HAVE_INET_ATON
+#endif
 
 /* Define if you have setenv */
 #undef HAVE_SETENV
 /* Define if you have memmove */
 #define HAVE_MEMMOVE
 
-/* Define if you have <termios.h> */
-#undef HAVE_TERMIOS_H
-
 /* Define if you have gethostid */
 #undef HAVE_GETHOSTID
 
 /* Define if you DON'T have unix-domain sockets */
 #undef NO_UNIX_SOCKETS
+#ifdef _WIN32
+#define NO_UNIX_SOCKETS
+#endif
 
 /* Define if gettimeofday only takes one argument */
 #undef GETTIMEOFDAY_ONE_ARG