aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2018-07-23 20:51:50 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2018-07-23 16:51:50 -0400
commit5b3d96f24f363d74c9f505d1e4c24a01db95de8c (patch)
treefb36af88818a5e0af5c095d19e9254ac414c7f78 /fixincludes/inclhack.def
parent2d6c8eea1d7ae5b3b2b3c2508f78de918c73f4c4 (diff)
downloadgcc-5b3d96f24f363d74c9f505d1e4c24a01db95de8c.zip
gcc-5b3d96f24f363d74c9f505d1e4c24a01db95de8c.tar.gz
gcc-5b3d96f24f363d74c9f505d1e4c24a01db95de8c.tar.bz2
inclhack.def (aix_unistd): New.
* inclhack.def (aix_unistd): New. * fixincl.x: Regenerate. * tests/base/unistd.h [AIX_UNISTD_CHECK]: New test. From-SVN: r262936
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def14
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index c1f5a13..4ce8b16 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -924,6 +924,20 @@ fix = {
};
/*
+ * AIX unistd.h defines a static function with an empty parameter list.
+ */
+fix = {
+ hackname = aix_unistd;
+ mach = "*-*-aix*";
+ files = unistd.h;
+
+ select = "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
+ c_fix = format;
+ c_fix_arg = "\tstatic int\t\tgetdtablesize(void)";
+ test_text = " static int getdtablesize()";
+};
+
+/*
* Fix __assert declaration in assert.h on Alpha OSF/1.
*/
fix = {