[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH] lib/vfscore: enable _BSD_SOURCE



Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 04.06.19 11:26, Yuri Volchkov wrote:
.. where needed to comply with musl

Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
  lib/vfscore/dentry.c                | 2 ++
  lib/vfscore/include/vfscore/mount.h | 2 ++
  lib/vfscore/lookup.c                | 2 ++
  lib/vfscore/mount.c                 | 2 ++
  lib/vfscore/task.c                  | 1 +
  lib/vfscore/vfs.h                   | 1 +
  lib/vfscore/vnode.c                 | 1 +
  7 files changed, 11 insertions(+)

diff --git a/lib/vfscore/dentry.c b/lib/vfscore/dentry.c
index dc9db352..76f7a6b8 100644
--- a/lib/vfscore/dentry.c
+++ b/lib/vfscore/dentry.c
@@ -30,6 +30,8 @@
   * SUCH DAMAGE.
   */
+#define _BSD_SOURCE
+
  #include <string.h>
  #include <stdlib.h>
diff --git a/lib/vfscore/include/vfscore/mount.h b/lib/vfscore/include/vfscore/mount.h
index c72f538b..b85e211e 100644
--- a/lib/vfscore/include/vfscore/mount.h
+++ b/lib/vfscore/include/vfscore/mount.h
@@ -32,6 +32,8 @@
  #ifndef _SYS_MOUNT_H_
  #define _SYS_MOUNT_H_
+#define _BSD_SOURCE
+
  #include <sys/statfs.h>
  #include <limits.h>
  #include <uk/list.h>
diff --git a/lib/vfscore/lookup.c b/lib/vfscore/lookup.c
index 1e2c4005..53e508d8 100644
--- a/lib/vfscore/lookup.c
+++ b/lib/vfscore/lookup.c
@@ -30,6 +30,8 @@
   * SUCH DAMAGE.
   */
+#define _BSD_SOURCE
+
  #include <unistd.h>
  #include <string.h>
  #include <errno.h>
diff --git a/lib/vfscore/mount.c b/lib/vfscore/mount.c
index 5d1af503..2629d132 100644
--- a/lib/vfscore/mount.c
+++ b/lib/vfscore/mount.c
@@ -34,6 +34,8 @@
   * vfs_mount.c - mount operations
   */
+#define _BSD_SOURCE
+
  #include <sys/param.h>
  #include <limits.h>
  #include <unistd.h>
diff --git a/lib/vfscore/task.c b/lib/vfscore/task.c
index e658bdaa..20c474c4 100644
--- a/lib/vfscore/task.c
+++ b/lib/vfscore/task.c
@@ -34,6 +34,7 @@
   * vfs_task.c - Routines to manage the per task data.
   */
+#define _BSD_SOURCE #include <limits.h>
  #include <stdlib.h>
diff --git a/lib/vfscore/vfs.h b/lib/vfscore/vfs.h
index 85e813d4..fd60dec7 100644
--- a/lib/vfscore/vfs.h
+++ b/lib/vfscore/vfs.h
@@ -39,6 +39,7 @@
  #include <limits.h>
  #include <fcntl.h>
  #include <sys/statfs.h>
+#include <sys/time.h>
/*
   * Tunable parameters
diff --git a/lib/vfscore/vnode.c b/lib/vfscore/vnode.c
index b9008ac2..51bd7564 100644
--- a/lib/vfscore/vnode.c
+++ b/lib/vfscore/vnode.c
@@ -33,6 +33,7 @@
  /*
   * vfs_vnode.c - vnode service
   */
+#define _BSD_SOURCE
#include <limits.h>
  #include <unistd.h>


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.