mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 18:32:53 +03:00
* 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:
parent
22543072c8
commit
dbe20dc6c8
@ -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
|
||||
|
32
src/global.h
32
src/global.h
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user