changeset 11031:f33575c28e6c

Fix compilation error on HP-UX 11.00.
author Bruno Haible <bruno@clisp.org>
date Sat, 17 Jan 2009 17:12:42 +0100
parents bb4a06b3e8fb
children 58b810e18aa8
files ChangeLog lib/fopen.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/fopen.c
+++ b/lib/fopen.c
@@ -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)