Skip to content

Commit 56af7c9

Browse files
committed
libyang BUGFIX freebsd macro fix
1 parent a554434 commit 56af7c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
#define _GNU_SOURCE
16-
#if defined (__FreeBSD__) /* hides asprintf */
16+
#if !defined (__FreeBSD__) /* hides asprintf */
1717
# define _POSIX_C_SOURCE 200809L /* strdup, strndup */
1818
#endif
1919

tools/lint/completion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
#define _GNU_SOURCE
16-
#if defined (__FreeBSD__) /* hides asprintf */
16+
#if !defined (__FreeBSD__) /* hides asprintf */
1717
# define _POSIX_C_SOURCE 200809L /* strdup */
1818
#endif
1919

0 commit comments

Comments
 (0)