dhcpdump: Fix strsep() feature test
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 5 Aug 2014 12:12:29 +0000 (14:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 7 Aug 2014 20:19:21 +0000 (22:19 +0200)
commitc2a7f0d6051f71f3bb9d83b574d70814339e4b95
tree8c73e942c1b3a68dcc9f6fa269757919181e9279
parentbc6b399366bcdfa7432ec5d10865753ad24b0a1e
dhcpdump: Fix strsep() feature test

Use the official _BSD_SOURCE feature test macro instead of the meaningless
HAVE_STRSEP macro in order to detect the availability of strsep().

This allows toolchains supporting strsep() to use it instead of the custom
implementation from dhcpdump, which also avoids the following error with some
toolchains:

In file included from dhcpdump.c:30:0:
dhcpdump.c: At top level:
strsep.c:65:23: error: register name not specified for ‘delim’
  register const char *delim;
                       ^

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcpdump/dhcpdump-0002-fix-strsep-feature-test.patch [new file with mode: 0644]