2004-12-02 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines time_t before including sys/stat.h, which uses it. * libc/sys/linux/sys/stat.h: Include <sys/types.h> and <linux/time.h> just prior to definition of __KERNEL__ so as to allow building on Debian Linux where otherwise, mktime would be redefined.
This commit is contained in:
parent
f9095d09fe
commit
70e9da4249
|
@ -1,3 +1,12 @@
|
||||||
|
2004-12-02 Shaun Jackman <sjackman@gmail.com>
|
||||||
|
|
||||||
|
* libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
|
||||||
|
time_t before including sys/stat.h, which uses it.
|
||||||
|
* libc/sys/linux/sys/stat.h: Include <sys/types.h> and
|
||||||
|
<linux/time.h> just prior to definition of __KERNEL__ so as to
|
||||||
|
allow building on Debian Linux where otherwise, mktime would
|
||||||
|
be redefined.
|
||||||
|
|
||||||
2004-11-26 Paul Brook <paul@codesourcery.com>
|
2004-11-26 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
* libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
|
* libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
|
||||||
|
|
|
@ -66,6 +66,7 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/glob.c,v 1.19 2002/02/01 01:32:19 obrien Ex
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
|
@ -7,14 +7,15 @@
|
||||||
#define _SYS_STAT_H
|
#define _SYS_STAT_H
|
||||||
|
|
||||||
#include <asm/stat.h>
|
#include <asm/stat.h>
|
||||||
|
#include <_ansi.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <linux/time.h>
|
||||||
#define __KERNEL__
|
#define __KERNEL__
|
||||||
#include <linux/stat.h>
|
#include <linux/stat.h>
|
||||||
#undef __KERNEL__
|
#undef __KERNEL__
|
||||||
|
|
||||||
/* --- redundant stuff below --- */
|
/* --- redundant stuff below --- */
|
||||||
|
|
||||||
#include <_ansi.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
int _EXFUN(fstat,( int __fd, struct stat *__sbuf ));
|
int _EXFUN(fstat,( int __fd, struct stat *__sbuf ));
|
||||||
int _EXFUN(mkdir,( const char *_path, mode_t __mode ));
|
int _EXFUN(mkdir,( const char *_path, mode_t __mode ));
|
||||||
|
|
Loading…
Reference in New Issue