aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-09-12 10:51:11 -0500
committerBrent Cook <bcook@openbsd.org>2015-09-12 10:51:11 -0500
commita787f964a158aec0fd77d9969e1e600f431f4e38 (patch)
treea828fd198294b4af30c4de2bc60bf10c8d6208a3
parentdcbaa6b69936fa02e0c1c78fddb066ab519040d5 (diff)
downloadportable-a787f964a158aec0fd77d9969e1e600f431f4e38.tar.gz
portable-a787f964a158aec0fd77d9969e1e600f431f4e38.tar.bz2
portable-a787f964a158aec0fd77d9969e1e600f431f4e38.zip
restrict nc to openbsd builds for now
-rw-r--r--apps/nc/Makefile.am4
-rw-r--r--m4/check-os-options.m42
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 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3if HOST_OPENBSD
4
3if HAVE_POLL 5if HAVE_POLL
4 6
5noinst_PROGRAMS = nc 7noinst_PROGRAMS = nc
@@ -17,3 +19,5 @@ nc_SOURCES += strtonum.c
17endif 19endif
18 20
19endif 21endif
22
23endif
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])
72AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) 73AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux])
73AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) 74AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux])
74AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) 75AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd])
76AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd])
75AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) 77AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris])
76AM_CONDITIONAL([HOST_WIN], [test x$HOST_OS = xwin]) 78AM_CONDITIONAL([HOST_WIN], [test x$HOST_OS = xwin])
77]) 79])