Commit 5a10283b authored by Rob Latham's avatar Rob Latham Committed by Kenneth Raffenetti
Browse files

remove _XOPEN_SOURCE in code



lustre, or specifically the header files lustre brings in (quota.h) show
a problem with caddr_t not being defined if XOPEN_SOURCE is set.  We
provided this define so we could make use of pread/pwrite, but instead
we will use our replacement pread/pwrite if one does not exist.

See #1973
Signed-off-by: Kenneth Raffenetti's avatarKen Raffenetti <raffenet@mcs.anl.gov>
parent 4e80e1d2
...@@ -8,11 +8,6 @@ ...@@ -8,11 +8,6 @@
* Copyright (C) 2008 Sun Microsystems, Lustre group * Copyright (C) 2008 Sun Microsystems, Lustre group
*/ */
#ifdef _STDC_C99
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -8,11 +8,6 @@ ...@@ -8,11 +8,6 @@
#ifndef AD_XFS_INCLUDE #ifndef AD_XFS_INCLUDE
#define AD_XFS_INCLUDE #define AD_XFS_INCLUDE
#ifdef _STDC_C99
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -6,11 +6,6 @@ ...@@ -6,11 +6,6 @@
*/ */
#ifdef _STDC_C99
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif
#include <unistd.h> #include <unistd.h>
#include "adio.h" #include "adio.h"
......
...@@ -6,11 +6,6 @@ ...@@ -6,11 +6,6 @@
*/ */
#ifdef _STDC_C99
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif
#include <unistd.h> #include <unistd.h>
#include "adio.h" #include "adio.h"
......
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