Skip to content

Commit

Permalink
build: define _OPENBSD_SOURCE on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Mar 11, 2022
1 parent 51ef846 commit ec2a78b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions m4/os.m4
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ AC_DEFUN([lldp_CFLAGS_OS], [
AX_CFLAGS_GCC_OPTION([-D_XOPEN_SOURCE=500], [LLDP_CPPFLAGS]) dnl HP-UX
AX_CFLAGS_GCC_OPTION([-D_XOPEN_SOURCE_EXTENDED], [LLDP_CPPFLAGS]) dnl HP-UX
;;
netbsd*)
AX_CFLAGS_GCC_OPTION([-D_OPENBSD_SOURCE], [LLDP_CPPFLAGS]) dnl strtonum
;;
esac
])

0 comments on commit ec2a78b

Please sign in to comment.