System headerfiles gathered in yconfig
[yaz-moved-to-github.git] / include / yconfig.h
index bf1f441..b8d1fab 100644 (file)
@@ -1,8 +1,42 @@
 #ifndef YCONFIG_H
 #define YCONFIG_H
 
+/* System includes */
+
+#ifdef _VMS_
+
+#elif WINDOWS
+
+#ifdef YNETINCLUDE
+#include <winsock.h>
+#endif
+
+#else
+/*
+ * Standard Unix headers
+ */
+
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/wait.h>
+
+#ifdef YNETINCLUDE
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#endif
+
+#ifdef _AIX
+#include <sys/select.h>
+#endif
+
+#endif
+
+#include <xmalloc.h>
+
 #ifdef WINDOWS
-#define MDF pascal
+#define MDF
 #else
 #ifndef MDF
 #define MDF