Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/encapsulate/+/56220 )
Change subject: Declare usage of GNU features ......................................................................
Declare usage of GNU features
unshare() is only available with it on glibc (even though it's probably not GNU?), leading to a warning and potentially unsafe compilation due to default types.
Change-Id: I6f3f5c4b3afa3407802fe33728a11106d1e53990 Signed-off-by: Patrick Georgi pgeorgi@google.com --- M encapsulate.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/encapsulate refs/changes/20/56220/1
diff --git a/encapsulate.c b/encapsulate.c index 439fd93..e3a4d93 100644 --- a/encapsulate.c +++ b/encapsulate.c @@ -14,6 +14,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+#define _GNU_SOURCE + #include <sys/types.h> #include <sys/stat.h> #include <sys/mount.h>