diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-03 23:35:46 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-03 23:35:46 +0200 |
commit | bec507f32c1ee0322c5e834671d8e3e8ebd1a72b (patch) | |
tree | d20688ba6603dfed841a2d2fdd50cdaf9defbc8e | |
parent | c159a059bdc152931e22f2e86553acb25c78183a (diff) |
Fix build
-rw-r--r-- | lnode.c | 2 | ||||
-rw-r--r-- | node.c | 1 | ||||
-rw-r--r-- | nsmux.c | 6 | ||||
-rw-r--r-- | nsmux.h | 4 |
4 files changed, 9 insertions, 4 deletions
@@ -27,6 +27,8 @@ /*---------------------------------------------------------------------------*/ #define _GNU_SOURCE /*---------------------------------------------------------------------------*/ +#include <assert.h> +/*---------------------------------------------------------------------------*/ #include "lnode.h" #include "debug.h" #include "node.h" @@ -34,6 +34,7 @@ #include <stdio.h> #include <argz.h> #include <hurd/fsys.h> +#include <assert.h> /*---------------------------------------------------------------------------*/ #include "debug.h" #include "node.h" @@ -35,6 +35,8 @@ #include <fcntl.h> #include <hurd/paths.h> #include <hurd/fsys.h> +#include <assert.h> +#include <sys/sysmacros.h> /*---------------------------------------------------------------------------*/ #include "debug.h" #include "options.h" @@ -1109,8 +1111,8 @@ error_t if (asprintf (argz, "%s%c%d%c%d", (S_ISCHR (np->nn_translated) ? _HURD_CHRDEV : _HURD_BLKDEV), - 0, major (np->nn_stat.st_rdev), - 0, minor (np->nn_stat.st_rdev)) < 0) + 0, gnu_dev_major (np->nn_stat.st_rdev), + 0, gnu_dev_minor (np->nn_stat.st_rdev)) < 0) return ENOMEM; *argz_len = strlen (*argz) + 1; *argz_len += strlen (*argz + *argz_len) + 1; @@ -64,8 +64,8 @@ extern mach_port_t underlying_node; extern io_statbuf_t underlying_node_stat; /*---------------------------------------------------------------------------*/ /*The translator callbacks required by netfs_S_dir_lookup*/ -fshelp_fetch_root_callback1_t _netfs_translator_callback1; -fshelp_fetch_root_callback2_t _netfs_translator_callback2; +extern fshelp_fetch_root_callback1_t _netfs_translator_callback1; +extern fshelp_fetch_root_callback2_t _netfs_translator_callback2; /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ |