Code

Ceph: define _DEFAULT_SOURCE next to _BSD_SOURCE
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 4 Mar 2015 14:38:06 +0000 (15:38 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 8 Mar 2015 12:26:31 +0000 (13:26 +0100)
commit60124c7da3a9fccdc610d804755a5f27398d0951
treeea482d8ca3b7ae9bca93022a28d8c5d6435e4988
parent5a82fab57a0b37b70f9aa279e2127bf87ed745d5
Ceph: define _DEFAULT_SOURCE next to _BSD_SOURCE

Fixes:
make[3]: Entering directory '/home/ruben/src/collectd/src'
  CC       ceph_la-ceph.lo
In file included from /usr/include/stdio.h:27:0,
                 from ./daemon/collectd.h:34,
                 from ceph.c:26:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
 # _DEFAULT_SOURCE"
   ^
cc1: all warnings being treated as errors
Makefile:4120: recipe for target 'ceph_la-ceph.lo' failed
make[3]: *** [ceph_la-ceph.lo] Error 1
make[3]: Leaving directory '/home/ruben/src/collectd/src'
Makefile:5096: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/ruben/src/collectd/src'
Makefile:3142: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ruben/src/collectd/src'
Makefile:551: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
src/ceph.c