aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorAdam Nemet <anemet@lnxw.com>2004-09-10 13:56:50 +0000
committerAdam Nemet <nemet@gcc.gnu.org>2004-09-10 13:56:50 +0000
commitd635c70797688ead5f670ad5b176b12c0129b74f (patch)
treea8e8932efa0ab6fe75534e82ba535ebe41512099 /fixincludes/inclhack.def
parent85d625202998b5153d40cf1fbc36a400e8e013dd (diff)
downloadgcc-d635c70797688ead5f670ad5b176b12c0129b74f.zip
gcc-d635c70797688ead5f670ad5b176b12c0129b74f.tar.gz
gcc-d635c70797688ead5f670ad5b176b12c0129b74f.tar.bz2
inclhack.def (lynx_void_int): Remove.
* inclhack.def (lynx_void_int): Remove. (lynxos_fcntl_proto): Remove. (lynxos_no_warning_in_sys_time_h): New fix. (lynxos_missing_putenv): New fix. * fixincl.x: Regenerate. * tests/base/fcntl.h: Remove. * tests/base/sys/time.h: Update from test area. * tests/base/curses.h: Likewise. * tests/base/stdlib.h: Likewise. From-SVN: r87298
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def34
1 files changed, 19 insertions, 15 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 537155c..ef32025 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -1870,31 +1870,35 @@ fix = {
};
#endif
-
-/*
- * Delete the '#define void int' line from curses.h on Lynx
+/*
+ * Remove header file warning from sys/time.h. Autoconf's
+ * AC_HEADER_TIME recommends to include both sys/time.h and time.h
+ * which causes warning on LynxOS. Remove the warning.
*/
fix = {
- hackname = lynx_void_int;
- files = curses.h;
- select = "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
+ hackname = lynxos_no_warning_in_sys_time_h;
+ files = sys/time.h;
+ select = "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
c_fix = format;
c_fix_arg = "";
- test_text = "# define\tvoid\tint \t/* curses foiled again */";
+ test_text = "#warning Using <time.h> instead of <sys/time.h>";
};
-/*
- * Fix fcntl prototype in fcntl.h on LynxOS.
+/*
+ * Add missing declaration for putenv.
*/
fix = {
- hackname = lynxos_fcntl_proto;
- files = fcntl.h;
- select = "fcntl[ \t]*" '\(int, int, int\)';
+ hackname = lynxos_missing_putenv;
+ mach = '*-*-lynxos*';
+ files = stdlib.h;
+ bypass = 'putenv[ \t]*\\(';
+ select = "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
c_fix = format;
- c_fix_arg = '%1...)';
- c_fix_arg = "(fcntl[ \t]*" '\(int, int, )int\)';
- test_text = "extern int fcntl(int, int, int);";
+ c_fix_arg = "%0\n"
+ "extern int putenv _AP((char *));";
+ c_fix_arg = "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
+ test_text = "extern char *getenv _AP((const char *));";
};