netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: netdev@vger.kernel.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH] configure: Define _GNU_SOURCE when checking for setns
Date: Wed, 10 Aug 2022 22:34:40 -0700	[thread overview]
Message-ID: <20220811053440.778649-1-raj.khem@gmail.com> (raw)

glibc defines this function only as gnu extention

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 440facb..c02753b 100755
--- a/configure
+++ b/configure
@@ -191,6 +191,7 @@ check_ipt_lib_dir()
 check_setns()
 {
     cat >$TMPDIR/setnstest.c <<EOF
+#define _GNU_SOURCE
 #include <sched.h>
 int main(int argc, char **argv)
 {
-- 
2.37.1


             reply	other threads:[~2022-08-11  5:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-11  5:34 Khem Raj [this message]
2022-08-12 15:30 ` [PATCH] configure: Define _GNU_SOURCE when checking for setns patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220811053440.778649-1-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).