All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] build: define _DEFAULT_SOURCE if _BSD_SOURCE
@ 2017-10-26 17:28 Luis R. Rodriguez
  2017-11-02 20:04 ` Eric Sandeen
  0 siblings, 1 reply; 6+ messages in thread
From: Luis R. Rodriguez @ 2017-10-26 17:28 UTC (permalink / raw)
  To: sandeen; +Cc: linux-xfs, Luis R. Rodriguez

./configure will leave traces of a complaint on config.log when
_BSD_SOURCE is defined but not _DEFAULT_SOURCE. _BSD_SOURCE is
deprecated so if defining _BSD_SOURCE also define _DEFAULT_SOURCE.

>From config.log:
/usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
 m4/package_libcdev.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
index fa5b63978797..af2a9631b8ba 100644
--- a/m4/package_libcdev.m4
+++ b/m4/package_libcdev.m4
@@ -137,6 +137,7 @@ AC_DEFUN([AC_HAVE_PREADV],
   [ AC_MSG_CHECKING([for preadv])
     AC_TRY_LINK([
 #define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 #include <sys/uio.h>
     ], [
          preadv(0, 0, 0, 0);
-- 
2.14.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-03  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 17:28 [PATCH] build: define _DEFAULT_SOURCE if _BSD_SOURCE Luis R. Rodriguez
2017-11-02 20:04 ` Eric Sandeen
2017-11-02 20:22   ` Luis R. Rodriguez
2017-11-02 22:51     ` Eric Sandeen
2017-11-02 22:59       ` Luis R. Rodriguez
2017-11-03  3:10         ` Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.