diff options
author | mike <mike@FreeBSD.org> | 2002-09-18 05:51:23 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-18 05:51:23 +0000 |
commit | 24c9e9c70771f6f20ab69d91fb849d2c64cfcc25 (patch) | |
tree | b9736d9a2e899fec06a98feae11dce94172ce381 | |
parent | a96623e90abf5db6bfbed48c7692fb17e3db639e (diff) | |
download | FreeBSD-src-24c9e9c70771f6f20ab69d91fb849d2c64cfcc25.zip FreeBSD-src-24c9e9c70771f6f20ab69d91fb849d2c64cfcc25.tar.gz |
Move definition of nl_item type to <sys/_types.h>, so that it can be
shared.
-rw-r--r-- | include/nl_types.h | 6 | ||||
-rw-r--r-- | sys/sys/_types.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/nl_types.h b/include/nl_types.h index afd7f9f..43eee1f 100644 --- a/include/nl_types.h +++ b/include/nl_types.h @@ -39,7 +39,11 @@ up-to-date. Many thanks. #define NL_SETD 0 #define NL_CAT_LOCALE 1 -typedef int nl_item; +#ifndef _NL_ITEM_DECLARED +typedef __nl_item nl_item; +#define _NL_ITEM_DECLARED +#endif + typedef void *nl_catd; __BEGIN_DECLS diff --git a/sys/sys/_types.h b/sys/sys/_types.h index fd1d942..d11e9c4 100644 --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -41,6 +41,7 @@ typedef __uint64_t __fsblkcnt_t; typedef __uint64_t __fsfilcnt_t; typedef __uint32_t __gid_t; typedef __uint16_t __mode_t; /* permissions */ +typedef int __nl_item; typedef __int64_t __off_t; /* file offset */ typedef __int32_t __pid_t; /* process [group] */ typedef __uint8_t __sa_family_t; |