Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Tell libpcap that we have strlcpy.
Browse files Browse the repository at this point in the history
Without this, libpcap ends up defining strlcpy as a macro before it
ever includes string.h. It then includes string.h, and ends up
rewriting the function decl with the macro body, breaking the build.

Test: mma
Bug: None
Change-Id: I677e4ac8ac002ab80c2ba478cf2dfa9da2e0cfc3
  • Loading branch information
DanAlbert committed Oct 11, 2017
1 parent 7b7f0b4 commit 3252f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.h
Expand Up @@ -165,7 +165,7 @@
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strlcpy' function. */
/* #undef HAVE_STRLCPY */
#define HAVE_STRLCPY 1

/* Define to 1 if you have the `strtok_r' function. */
#define HAVE_STRTOK_R 1
Expand Down

0 comments on commit 3252f28

Please sign in to comment.