summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-07-30 22:09:42 +0000
committerjbj <devnull@localhost>1998-07-30 22:09:42 +0000
commit5142bf78e626b861ec1af6be7d81d3bb5c0afe03 (patch)
treeaa6b84c1fb3cf9f267637a719f4f3106e19a1d12 /system.h
parentff2267faac75d20f0b8e8ebfda7f571403ad5ee5 (diff)
downloadrpm-5142bf78e626b861ec1af6be7d81d3bb5c0afe03.tar.gz
rpm-5142bf78e626b861ec1af6be7d81d3bb5c0afe03.tar.bz2
rpm-5142bf78e626b861ec1af6be7d81d3bb5c0afe03.zip
Consolidated includes for librpmbuild API.
CVS patchset: 2213 CVS date: 1998/07/30 22:09:42
Diffstat (limited to 'system.h')
-rw-r--r--system.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/system.h b/system.h
index 51868a207..77d8e5b4c 100644
--- a/system.h
+++ b/system.h
@@ -26,12 +26,32 @@
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
/* <unistd.h> should be included before any preprocessor test
of _POSIX_VERSION. */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
+#if NEED_TIMEZONE
+extern time_t timezone;
+#endif
+
+
/* Since major is a function on SVR4, we can't use `ifndef major'. */
#if MAJOR_IN_MKDEV
#include <sys/mkdev.h>
@@ -52,6 +72,10 @@
#endif
#undef HAVE_MAJOR
+#ifdef HAVE_UTIME_H
+#include <utime.h>
+#endif
+
#ifndef __P
#if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
#define __P(args) args
@@ -137,10 +161,27 @@ char *alloca ();
#include <ctype.h>
+#if HAVE_SYS_MMAN_H
+#include <sys/mman.h>
+#endif
+
+/* XXX FIXME: popt on sunos4.1.3: <sys/resource.h> requires <sys/time.h> */
+#if HAVE_SYS_RESOURCE_H && HAVE_SYS_TIME_H
+#include <sys/resource.h>
+#endif
+
+#if HAVE_SYS_UTSNAME_H
+#include <sys/utsname.h>
+#endif
+
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
+#if HAVE_GRP_H
+#include <grp.h>
+#endif
+
#if HAVE_LIMITS_H
#include <limits.h>
#endif
@@ -149,6 +190,14 @@ char *alloca ();
#include <malloc.h>
#endif
+#if HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
+#if HAVE_PWD_H
+#include <pwd.h>
+#endif
+
/* ============== from misc/miscfn.h */
#if HAVE_FNMATCH_H