diff options
| -rw-r--r-- | apps/nc/Makefile.am | 4 | ||||
| -rw-r--r-- | m4/check-os-options.m4 | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am index 9d5dafc..b27d7de 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | include $(top_srcdir)/Makefile.am.common | 1 | include $(top_srcdir)/Makefile.am.common |
| 2 | 2 | ||
| 3 | if HOST_OPENBSD | ||
| 4 | |||
| 3 | if HAVE_POLL | 5 | if HAVE_POLL |
| 4 | 6 | ||
| 5 | noinst_PROGRAMS = nc | 7 | noinst_PROGRAMS = nc |
| @@ -17,3 +19,5 @@ nc_SOURCES += strtonum.c | |||
| 17 | endif | 19 | endif |
| 18 | 20 | ||
| 19 | endif | 21 | endif |
| 22 | |||
| 23 | endif | ||
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 4f94897..895d22b 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 | |||
| @@ -43,6 +43,7 @@ case $host_os in | |||
| 43 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | 43 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" |
| 44 | ;; | 44 | ;; |
| 45 | *openbsd* | *bitrig*) | 45 | *openbsd* | *bitrig*) |
| 46 | HOST_OS=openbsd | ||
| 46 | HOST_ABI=elf | 47 | HOST_ABI=elf |
| 47 | AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded]) | 48 | AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded]) |
| 48 | ;; | 49 | ;; |
| @@ -72,6 +73,7 @@ AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) | |||
| 72 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) | 73 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) |
| 73 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) | 74 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) |
| 74 | AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) | 75 | AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) |
| 76 | AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) | ||
| 75 | AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) | 77 | AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) |
| 76 | AM_CONDITIONAL([HOST_WIN], [test x$HOST_OS = xwin]) | 78 | AM_CONDITIONAL([HOST_WIN], [test x$HOST_OS = xwin]) |
| 77 | ]) | 79 | ]) |
