summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-07-11 19:56:44 +0000
committerRoland McGrath <roland@gnu.org>1999-07-11 19:56:44 +0000
commite345864d418be75f391241b8debdb1e793d64463 (patch)
tree923ee12d27591a5bb393dab59ac819a3d1a64222
parentffa6fee9e2be655154a9d01206c5ec4d1f733010 (diff)
1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* portinfo.h: Don't include <sys/types.h>, <sys/mman.h>. This is an exported header, and its decls don't need them. * portinfo.c: Include them here instead. * xportinfo.c: And here.
-rw-r--r--libshouldbeinlibc/portinfo.c3
-rw-r--r--libshouldbeinlibc/portinfo.h2
-rw-r--r--libshouldbeinlibc/xportinfo.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/portinfo.c
index b04014da..6cb3f375 100644
--- a/libshouldbeinlibc/portinfo.c
+++ b/libshouldbeinlibc/portinfo.c
@@ -18,6 +18,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <sys/types.h>
+#include <sys/mman.h>
+
#include "portinfo.h"
/* Prints info about NAME in TASK to STREAM, in a way described by the flags
diff --git a/libshouldbeinlibc/portinfo.h b/libshouldbeinlibc/portinfo.h
index cc8d0730..143c2898 100644
--- a/libshouldbeinlibc/portinfo.h
+++ b/libshouldbeinlibc/portinfo.h
@@ -24,8 +24,6 @@
#include <stdio.h>
#include <errno.h>
#include <mach.h>
-#include <sys/types.h>
-#include <sys/mman.h>
#include <portxlate.h>
diff --git a/libshouldbeinlibc/xportinfo.c b/libshouldbeinlibc/xportinfo.c
index f94bc4bd..bba84a12 100644
--- a/libshouldbeinlibc/xportinfo.c
+++ b/libshouldbeinlibc/xportinfo.c
@@ -18,6 +18,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <sys/types.h>
+#include <sys/mman.h>
+
#include "portinfo.h"
/* Prints info about NAME translated through X to STREAM, in a way described