Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/encapsulate/+/44826 )
Change subject: Define _GNU_SOURCE to make unshare() visible with new glibc versions ......................................................................
Define _GNU_SOURCE to make unshare() visible with new glibc versions
Change-Id: I4d11685e2aaf165ca56f3bb622a1a8dfd2864d9e Reviewed-on: https://review.coreboot.org/c/encapsulate/+/44826 Tested-by: Patrick Georgi pgeorgi@google.com Reviewed-by: Paul Menzel paulepanter@users.sourceforge.net --- M encapsulate.c 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: Patrick Georgi: Verified Paul Menzel: Looks good to me, approved
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>