summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-19 16:21:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-19 16:21:35 (GMT)
commitfbc0f37dc5c5fd86e825dc436b56fda23a2e7ea7 (patch)
tree6c44da88a7c2d81532808b3f8c887c28290d475c /src/H5public.h
parent5f113eac849ee628a15e70fdfed23b3b34a7db1c (diff)
downloadhdf5-fbc0f37dc5c5fd86e825dc436b56fda23a2e7ea7.zip
hdf5-fbc0f37dc5c5fd86e825dc436b56fda23a2e7ea7.tar.gz
hdf5-fbc0f37dc5c5fd86e825dc436b56fda23a2e7ea7.tar.bz2
[svn-r4017] Purpose:
Code cleanup Description: Several system header files needed to be included on Linux machines to get the prototypes for some of the system calls we are using. Solution: Added a new feature test macro for including the <features.h> header on Linux machines, to set up compile macros for system header files. Platforms tested: Linux (eirene), FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h
index 330c6e3..270fa42 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -29,7 +29,13 @@
* prevent repeated include.
*/
#include "H5pubconf.h" /*from configure */
+
+#ifdef H5_HAVE_FEATURES_H
+#include <features.h> /*for setting POSIX, BSD, etc. compatibility */
+#endif
+#ifdef H5_HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef H5_STDC_HEADERS
# include <limits.h> /*for H5T_NATIVE_CHAR defn in H5Tpublic.h */
#endif