* libc/include/grp.h: Include Cygwin specific header.
* libc/include/sys/stat.h: Ditto. Don't define `struct stat' when compiling for Cygwin. * libc/include/sys/types.h: Don't define off_t, uid_t and gid_t when compiling for Cygwin.
This commit is contained in:
parent
52296b850c
commit
f3b39c459b
@ -1,3 +1,11 @@
|
|||||||
|
2002-02-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/include/grp.h: Include Cygwin specific header.
|
||||||
|
* libc/include/sys/stat.h: Ditto. Don't define `struct stat'
|
||||||
|
when compiling for Cygwin.
|
||||||
|
* libc/include/sys/types.h: Don't define off_t, uid_t
|
||||||
|
and gid_t when compiling for Cygwin.
|
||||||
|
|
||||||
2002-02-08 matthew green <mrg@redhat.com>
|
2002-02-08 matthew green <mrg@redhat.com>
|
||||||
|
|
||||||
* libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
|
* libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
|
||||||
|
@ -44,6 +44,9 @@
|
|||||||
#define _GRP_H_
|
#define _GRP_H_
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#include <cygwin/grp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
|
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||||
#define _PATH_GROUP "/etc/group"
|
#define _PATH_GROUP "/etc/group"
|
||||||
@ -56,7 +59,6 @@ struct group {
|
|||||||
char **gr_mem; /* group members */
|
char **gr_mem; /* group members */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,6 +22,9 @@ extern "C" {
|
|||||||
sizes of any of the basic types change (short, int, long) [via a compile
|
sizes of any of the basic types change (short, int, long) [via a compile
|
||||||
time option]. */
|
time option]. */
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#include <cygwin/stat.h>
|
||||||
|
#else
|
||||||
struct stat
|
struct stat
|
||||||
{
|
{
|
||||||
dev_t st_dev;
|
dev_t st_dev;
|
||||||
@ -49,6 +52,7 @@ struct stat
|
|||||||
long st_spare4[2];
|
long st_spare4[2];
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _IFMT 0170000 /* type of file */
|
#define _IFMT 0170000 /* type of file */
|
||||||
#define _IFDIR 0040000 /* directory */
|
#define _IFDIR 0040000 /* directory */
|
||||||
|
@ -128,10 +128,13 @@ typedef unsigned long long dev_t;
|
|||||||
typedef short dev_t;
|
typedef short dev_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef long off_t;
|
#ifndef __CYGWIN__ /* which defines these types in it's own types.h. */
|
||||||
|
typedef long off_t;
|
||||||
|
|
||||||
typedef unsigned short uid_t;
|
typedef unsigned short uid_t;
|
||||||
typedef unsigned short gid_t;
|
typedef unsigned short gid_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
typedef long key_t;
|
typedef long key_t;
|
||||||
typedef long ssize_t;
|
typedef long ssize_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user