Changeset 0480eef


Ignore:
Timestamp:
Dec 23, 2017, 6:29:41 PM (6 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
9e596f5
Parents:
a882637
git-author:
Anders Kaseorg <andersk@mit.edu> (12/23/17 18:26:54)
git-committer:
Anders Kaseorg <andersk@mit.edu> (12/23/17 18:29:41)
Message:
Define _DEFAULT_SOURCE in addition to _BSD_SOURCE

Fixes many copies of this warning with glibc 2.20.  (See _BSD_SOURCE
in feature_test_macros(7).)

In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from /usr/include/ncursesw/curses.h:63,
                 from owl.h:20,
                 from message.c:1:
/usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4fd3c04 r0480eef  
    181181
    182182AM_CFLAGS="$AM_CFLAGS -D_XOPEN_SOURCE=600"
    183 dnl Define _BSD_SOURCE because zephyr needs caddr_t.
    184 AM_CFLAGS="$AM_CFLAGS -D_BSD_SOURCE"
     183dnl Define _BSD_SOURCE/_DEFAULT_SOURCE because zephyr needs caddr_t.
     184AM_CFLAGS="$AM_CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
    185185dnl Define __EXTENSIONS__ for strcasecmp on Solaris.
    186186AM_CFLAGS="$AM_CFLAGS -D__EXTENSIONS__"
Note: See TracChangeset for help on using the changeset viewer.