• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/dhcpdump/0002-fix-strsep-feature-test.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
Use the official _BSD_SOURCE feature test macro instead of the meaningless
2
HAVE_STRSEP macro in order to detect the availability of strsep().
3
​
4
This allows toolchains supporting strsep() to use it instead of the custom
5
implementation from dhcpdump, which also avoids the following error with some
6
toolchains:
7
​
8
    In file included from dhcpdump.c:30:0:
9
    dhcpdump.c: At top level:
10
    strsep.c:65:23: error: register name not specified for ‘delim’
11
      register const char *delim;
12
                           ^
13
​
14
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
15
​
16
diff -Nrdup dhcpdump-1.8.orig/dhcpdump.c dhcpdump-1.8/dhcpdump.c
17
--- dhcpdump-1.8.orig/dhcpdump.c    2008-06-24 05:26:52.000000000 +0200
18
+++ dhcpdump-1.8/dhcpdump.c 2011-05-31 19:22:15.987388498 +0200
19
@@ -26,7 +26,7 @@
20
 #include <regex.h>
21
 #include "dhcp_options.h"
22
 
23
-#ifndef HAVE_STRSEP
24
+#ifndef _BSD_SOURCE
25
 #include "strsep.c"
26
 #endif
27
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.