diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-05 03:06:57 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-05 03:06:57 +0000 |
commit | 60ecd672487e4039efe8a13df1b0b3404992a809 (patch) | |
tree | 4bc094df9d36f4172a917830f2e479cdfed07114 /include/gnu-versions.h | |
parent | 3540d0675cce2068ec0c26a46660972a9859c368 (diff) |
Make the __GLIBC__ define be conditional. Stub out gnu-versions.h
-Erik
Diffstat (limited to 'include/gnu-versions.h')
-rw-r--r-- | include/gnu-versions.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/gnu-versions.h b/include/gnu-versions.h new file mode 100644 index 000000000..f642f6aee --- /dev/null +++ b/include/gnu-versions.h @@ -0,0 +1,29 @@ +/* Header to ignore some special GNU libc interfaces not provided + * by uClibc. */ + +#ifndef _GNU_VERSIONS_H +#define _GNU_VERSIONS_H 1 + +/* This file exists to avoid uClibc getting into trouble these macros + such as the following: + + #define OBSTACK_INTERFACE_VERSION 1 + #if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1 + #include <gnu-versions.h> + #if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION + #define ELIDE_CODE + #endif + #endif + + By defining bogus interface versions, I believe we can safely get + past such things while continuing to lie and define __GNU_LIBRARY__, + thereby getting better compatibility with the majority of the code + written for Linux. */ + +#define _GNU_OBSTACK_INTERFACE_VERSION -1 /* vs malloc/obstack.c */ +#define _GNU_REGEX_INTERFACE_VERSION -1 /* vs posix/regex.c */ +#define _GNU_GLOB_INTERFACE_VERSION -1 /* vs posix/glob.c */ +#define _GNU_GETOPT_INTERFACE_VERSION -1 /* vs posix/getopt.c and + posix/getopt1.c */ + +#endif /* gnu-versions.h */ |