* global.h: Include all time-related system includes, since

it's non-trivial (order, conflicts) and is better handled in one
place.
This commit is contained in:
Pavel Roskin 2001-09-07 16:46:31 +00:00
parent 22543072c8
commit dbe20dc6c8
2 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-09-07 Pavel Roskin <proski@gnu.org>
* global.h: Include all time-related system includes, since
it's non-trivial (order, conflicts) and is better handled in one
place.
2001-09-06 Pavel Roskin <proski@gnu.org>
* fsusage.c: Include sys/param.h before sys/mount.h - it's

View File

@ -1,10 +1,40 @@
/*
* This file should be included after all system includes and before
* all local includes.
*/
#ifndef __GLOBAL_H
#define __GLOBAL_H
#include <stdlib.h> /* for free() and other usefull routins */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
# include <sys/param.h>
#endif
#ifdef HAVE_SYS_TIMEB_H
# include <sys/timeb.h>
#endif
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#include <glib.h>
#include "fs.h"