presence_dialoginfo(k): fix bsd compilation
[sip-router] / modules_k / presence_dialoginfo / pidf.c
index 9285d2b..d90de4c 100644 (file)
  * use 600 for 'Single UNIX Specification, Version 3'
  * _XOPEN_SOURCE creates conflict in header definitions in Solaris
  */
-#ifndef __OS_solaris
-       #define _XOPEN_SOURCE 600          /* glibc2 on linux, bsd */
+#ifdef __OS_linux
+       #define _XOPEN_SOURCE 600          /* glibc2 on linux */
        #define _BSD_SOURCE 1                           /* needed on linux to "fix" the effect
                                                                                  of the above define on
                                                                                  features.h/unistd.h syscall() */
-#else
+#elif defined __OS_solaris
        #define _XOPEN_SOURCE_EXTENDED 1   /* solaris */
 #endif