[PATCH] Rump on GNU/Hurd (2): missing <sys/mount.h>

  • From: Robert Millan <rmh@xxxxxxx>
  • To: rumpkernel-users@xxxxxxxxxxxxx
  • Date: Sun, 16 Aug 2015 12:51:32 +0200


Hi,

Apparently this routine only wants the Rump version of <sys/mount.h> when
building with Rump namespace, but it includes the header unconditionally.

This is usually harmless as almost everyone has <sys/mount.h>, but GNU/Hurd
doesn't. So my patch just moves it into Rump protected space.

--
Robert Millan
--- a/buildrump.sh/src/sys/sys/syscallargs.h
+++ b/buildrump.sh/src/sys/sys/syscallargs.h
@@ -10,8 +10,8 @@
#ifndef _SYS_SYSCALLARGS_H_
#define _SYS_SYSCALLARGS_H_

-#include <sys/mount.h>
#ifndef RUMP_CLIENT
+#include <sys/mount.h>
#include <sys/sched.h>
#endif
#include <sys/socket.h>

Other related posts:

  • » [PATCH] Rump on GNU/Hurd (2): missing <sys/mount.h> - Robert Millan