Commit c286b086 authored by unknown's avatar unknown

include/my_global.h

    define _XOPEN_SOURCE=500 for solaris
include/my_sys.h
    remove a cast


include/my_global.h:
  define _XOPEN_SOURCE=500 for solaris
include/my_sys.h:
  remove a cast
parent d4cf05f6
...@@ -120,6 +120,21 @@ ...@@ -120,6 +120,21 @@
#define __STDC_EXT__ 1 /* To get large file support on hpux */ #define __STDC_EXT__ 1 /* To get large file support on hpux */
#endif #endif
/*
Solaris include file <sys/feature_tests.h> refers to X/Open document
System Interfaces and Headers, Issue 5
saying we should define _XOPEN_SOURCE=500 to get POSIX.1c prototypes
but apparently other systems (namely FreeBSD) don't agree.
Furthermore X/Open has since 2004 "System Interfaces, Issue 6"
that dictates _XOPEN_SOURCE=600, but Solaris checks for 500.
So, let's define 500 for solaris only.
*/
#ifdef __sun__
#define _XOPEN_SOURCE 500
#endif
#if defined(THREAD) && !defined(__WIN__) && !defined(OS2) #if defined(THREAD) && !defined(__WIN__) && !defined(OS2)
#ifndef _POSIX_PTHREAD_SEMANTICS #ifndef _POSIX_PTHREAD_SEMANTICS
#define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */ #define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */
......
...@@ -812,7 +812,7 @@ my_bool my_gethwaddr(uchar *to); ...@@ -812,7 +812,7 @@ my_bool my_gethwaddr(uchar *to);
/* qnx ? */ /* qnx ? */
#define my_getpagesize() 8192 #define my_getpagesize() 8192
#endif #endif
#define my_munmap(a,b) munmap((char*)(a),(b)) #define my_munmap(a,b) munmap((a),(b))
#else #else
/* not a complete set of mmap() flags, but only those that nesessary */ /* not a complete set of mmap() flags, but only those that nesessary */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment