fopen.c uses 'struct stat' without including <sys/stat.h>. Whee...
Leads to a compilation error on HP-UX 11.00.


2009-01-17  Bruno Haible  <br...@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>.

--- lib/fopen.c.orig    2009-01-17 17:11:23.000000000 +0100
+++ lib/fopen.c 2009-01-17 17:09:08.000000000 +0100
@@ -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 @@
 #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)


Reply via email to