diff options
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/Makefile | 9 | ||||
-rw-r--r-- | hurd/hurdinit.c | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/hurd/Makefile b/hurd/Makefile index 873e695297..363aeeaa98 100644 --- a/hurd/Makefile +++ b/hurd/Makefile @@ -68,6 +68,15 @@ distribute += hurdmalloc.h include ../mach/Machrules include ../Rules +# XXX sunrpc doesn't build yet for Hurd, but one of its headers is +# crucial nontheless. So sysdeps/mach/hurd/Makefile elides sunrpc +# from $(subdirs), and this rule arranges for the header in question +# to get installed. +install-headers-nosubdir: $(includedir)/rpc/netdb.h +$(includedir)/rpc/netdb.h: $(top_srcdir)/sunrpc/rpc/netdb.h + $(do-install) + + # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC # stubs import <hurd/signal.h> and #define __mach_msg to # _hurd_intr_rpc_mach_msg. diff --git a/hurd/hurdinit.c b/hurd/hurdinit.c index df10b5d955..bc2334e69f 100644 --- a/hurd/hurdinit.c +++ b/hurd/hurdinit.c @@ -31,6 +31,8 @@ struct hurd_port *_hurd_ports; unsigned int _hurd_nports; mode_t _hurd_umask; sigset_t _hurdsig_traced; +char **__libc_argv; + error_t _hurd_ports_use (int which, error_t (*operate) (mach_port_t)) @@ -165,7 +167,6 @@ _hurd_setproc (process_t procserver) { error_t err; mach_port_t oldmsg; - extern char **__libc_argv; /* Give the proc server our message port. */ if (err = __proc_setmsgport (procserver, _hurd_msgport, &oldmsg)) |