public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/libiberty] Add missing <sys/types.h> in unlink-if-ordinary.c
@ 2005-03-26 14:21 Mark Kettenis
  2005-03-26 14:27 ` Andrew Haley
  2005-03-27 18:48 ` Ian Lance Taylor
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Kettenis @ 2005-03-26 14:21 UTC (permalink / raw)
  To: gcc-patches; +Cc: binutils, gdb

One really shouldn't include <sys/stat.h> without <sys/types.h> on
BSD-derived systems.  On most modern BSD's it is brought in by
<unistd.h> but vax-dec-ultrix4.0 doesn't have one, so things break.
The attached patch fixes that.

ok?

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* unlink-if-ordinary.c: Include <sys/types.h>.

Index: unlink-if-ordinary.c
===================================================================
RCS file: /cvs/src/src/libiberty/unlink-if-ordinary.c,v
retrieving revision 1.1
diff -u -p -r1.1 unlink-if-ordinary.c
--- unlink-if-ordinary.c 1 Mar 2005 14:33:00 -0000 1.1
+++ unlink-if-ordinary.c 26 Mar 2005 14:18:20 -0000
@@ -39,6 +39,8 @@ was made to unlink the file because it i
 #include "config.h"
 #endif
 
+#include <sys/types.h>
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-03-28 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-26 14:21 [PATCH/libiberty] Add missing <sys/types.h> in unlink-if-ordinary.c Mark Kettenis
2005-03-26 14:27 ` Andrew Haley
2005-03-26 14:38   ` Mark Kettenis
2005-03-28  2:08     ` DJ Delorie
2005-03-28  2:19       ` Ian Lance Taylor
2005-03-28  2:35         ` DJ Delorie
2005-03-28 14:43           ` Mark Kettenis
2005-03-28 17:17             ` DJ Delorie
2005-03-27 18:48 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).