Fix compilation error on HP-UX 11.00.
authorBruno Haible <bruno@clisp.org>
Sat, 17 Jan 2009 16:12:42 +0000 (17:12 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 17 Jan 2009 16:12:42 +0000 (17:12 +0100)
ChangeLog
lib/fopen.c

index 9a2c3fc3883b93b7cb585486ff2ab48dc70ac7b6..b00193fd0e446acbeb10063e7d0daf4662d20393 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-17  Bruno Haible  <bruno@clisp.org>
+
+       Fix compilation error on HP-UX 11.00, present since 2008-09-24.
+       * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
+
 2009-01-17  Bruno Haible  <bruno@clisp.org>
 
        Avoid test-fflush2.sh failure on mingw.
index b20d3bcd5a3b01bb824573e2aa7fa356a79a16cb..72610bd9b4414b5c4e49cac72640b55f87d2b375 100644 (file)
@@ -1,5 +1,5 @@
 /* Open a stream to a file.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -36,6 +36,8 @@ orig_fopen (const char *filename, const char *mode)
 #include <fcntl.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 FILE *
 rpl_fopen (const char *filename, const char *mode)