bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compilation error in fopen.c


From: Bruno Haible
Subject: compilation error in fopen.c
Date: Sat, 17 Jan 2009 17:13:05 +0100
User-agent: KMail/1.9.9

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  <address@hidden>

        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

[Prev in Thread] Current Thread [Next in Thread]