* include/sys/param.h: Add ENDIAN defines.

* test_headers.c: Include sys/param.h.
This commit is contained in:
Danny Smith 2002-08-28 21:24:59 +00:00
parent 4053143834
commit 933ba4b187
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
* include/sys/param.h: Add ENDIAN defines.
* test_headers.c: Include sys/param.h.
2002-08-28 Danny Smith <dannysmith@users.sourceforge.net> 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
* test_headers.c: Don't include varargs.h. * test_headers.c: Don't include varargs.h.

View File

@ -28,4 +28,11 @@
#include <sys/types.h> #include <sys/types.h>
#include <limits.h> #include <limits.h>
#ifndef __STRICT_ANSI__
/* These are useful for cross-compiling */
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#endif #endif

View File

@ -41,6 +41,7 @@
#include <sys/fcntl.h> #include <sys/fcntl.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/locking.h> #include <sys/locking.h>
#include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/timeb.h> #include <sys/timeb.h>
@ -48,6 +49,5 @@
#include <sys/unistd.h> #include <sys/unistd.h>
#include <sys/utime.h> #include <sys/utime.h>
int main() int main()
{return 0;} {return 0;}