updates.
[silc.git] / includes / silcincludes.h
index ebdea361e518c19f7ca92cc220efbf88c60b6410..67a8b6c1c14dabe6519d088fa55eb8f14793db82 100644 (file)
 #ifndef SILCINCLUDES_H
 #define SILCINCLUDES_H
 
-/* Automatically generated configuration header */
-#include "silcdefs.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+#define SILC_UNIX
+
 #ifdef WIN32
 #ifndef SILC_WIN32
 #define SILC_WIN32
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(__EPOC32__)
 #ifndef SILC_EPOC
 #define SILC_EPOC
+#undef SILC_UNIX
 #endif
 #endif
 
 #ifdef BEOS
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #elif defined(__BEOS__)
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(OS2)
 #ifndef SILC_OS2
 #define SILC_OS2
+#undef SILC_UNIX
 #endif
 #endif
 
+/* Automatically generated configuration header */
+#include "silcdefs.h"
+
 /* Platform specific includes */
 
 #ifdef SILC_WIN32
@@ -186,6 +193,10 @@ extern "C" {
 #include <stddef.h>
 #endif
 
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
+
 #endif                         /* !SILC_WIN32 */
 
 #ifndef HAVE_GETOPT_LONG