Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2006 Pekka Riikonen
+ Copyright (C) 1997 - 2007 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* Automatically generated configuration header */
#ifndef SILC_SYMBIAN
#include "silcdefs.h"
-#include "silcdistdefs.h"
#else
#include "../symbian/silcdefs.h"
-#include "../symbian/silcdistdefs.h"
#endif /* SILC_SYMBIAN */
+#include "silcdistdefs.h"
#endif /* HAVE_SILCDEFS_H */
/* Platform specific includes */
#define DLLAPI
#endif
+#ifdef SILC_HAVE_PTHREAD
+/* For pthreads rwlock support */
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
+#else
+#ifdef _XOPEN_SOURCE < 500
+#define _XOPEN_SOURCE_SAVE _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
+#endif /* _XOPEN_SOURCE < 500 */
+#endif /* _XOPEN_SOURCE */
+#endif /* SILC_HAVE_PTHREAD */
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef SILC_HAVE_PTHREAD
#include <pthread.h>
+#ifdef _XOPEN_SOURCE_SAVE
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE _XOPEN_SOURCE_SAVE
+#undef _XOPEN_SOURCE_SAVE
+#endif /* _XOPEN_SOURCE_SAVE */
#endif
#ifdef HAVE_STDDEF_H
/* SILC util library includes */
#include "silcstack.h"
#include "silcmemory.h"
+#include "silcsnprintf.h"
/* Math library includes */
#include "silcmp.h"