[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Including <hurd/store.h>
From: |
Neal H Walfield |
Subject: |
[PATCH] Including <hurd/store.h> |
Date: |
Sat, 06 Oct 2001 20:17:30 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 |
We cannot include <hurd/store.h>. Rather, we are forced to include
"store.h" as when we build the dependency files (e.g. foo.d), we
depend on /include/hurd/store.h. We did not see this error with
parted.c because we do not generate a dependency file for parted.c.
Here is a patch:
2001-10-06 Neal H Walfield <neal@cs.uml.edu>
* memobj.c: Include "store.h", not <hurd/store.h>.
* nbd.c: Likewise.
* parted.c: Likewise.
Index: memobj.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libstore/memobj.c,v
retrieving revision 1.2
diff -u -p -r1.2 memobj.c
--- memobj.c 2001/10/01 16:47:49 1.2
+++ memobj.c 2001/10/06 13:46:20
@@ -18,12 +18,12 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include <hurd.h>
-#include <hurd/store.h>
#include <hurd/sigpreempt.h>
#include <sys/mman.h>
#include <string.h>
#include <assert.h>
+#include "store.h"
/* Return a new store in STORE referring to the memory object MEMOBJ.
Consumes the send right MEMOBJ. */
Index: nbd.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libstore/nbd.c,v
retrieving revision 1.5
diff -u -p -r1.5 nbd.c
--- nbd.c 2001/10/01 16:47:49 1.5
+++ nbd.c 2001/10/06 13:46:21
@@ -18,7 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include <hurd.h>
-#include <hurd/store.h>
#include <hurd/io.h>
#include <errno.h>
#include <sys/socket.h>
@@ -29,6 +28,7 @@
#include <unistd.h>
#include <sys/mman.h>
+#include "store.h"
// Avoid dragging in the resolver when linking statically.
#pragma weak gethostbyname
Index: part.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libstore/part.c,v
retrieving revision 1.2
diff -u -p -r1.2 part.c
--- part.c 2001/10/01 18:46:38 1.2
+++ part.c 2001/10/06 13:46:21
@@ -23,12 +23,13 @@
#include <errno.h>
#include <assert.h>
#include <cthreads.h>
-#include <hurd/store.h>
#include <parted/parted.h>
#include <parted/device_gnu.h>
#include <string.h>
#include <error.h>
+
+#include "store.h"
#define NEED_PARTED_VERSION "1.5.4"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Including <hurd/store.h>,
Neal H Walfield <=