summaryrefslogtreecommitdiff
path: root/x11/x11vnc/patches/patch-configure.ac
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-11-02 07:32:28 +0000
committerobache <obache@pkgsrc.org>2013-11-02 07:32:28 +0000
commit2ac823fd3dd15564f1d0cabf2801621438d5a6c7 (patch)
treed85e8da52528398cca6bec16b46da35c38b06592 /x11/x11vnc/patches/patch-configure.ac
parentd306b3316025290ff364401701ccc1499b640ba9 (diff)
downloadpkgsrc-2ac823fd3dd15564f1d0cabf2801621438d5a6c7.tar.gz
Use openpty(3) if available for NetBSD using ptyfs.
PR pkg/48313. Bump PKGREVISION.
Diffstat (limited to 'x11/x11vnc/patches/patch-configure.ac')
-rw-r--r--x11/x11vnc/patches/patch-configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/x11vnc/patches/patch-configure.ac b/x11/x11vnc/patches/patch-configure.ac
new file mode 100644
index 00000000000..2c8b2e0ceca
--- /dev/null
+++ b/x11/x11vnc/patches/patch-configure.ac
@@ -0,0 +1,25 @@
+$NetBSD: patch-configure.ac,v 1.1 2013/11/02 07:32:28 obache Exp $
+
+* check openpty(3)
+
+--- configure.ac.orig 2011-08-10 22:34:57.000000000 +0000
++++ configure.ac
+@@ -730,7 +730,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h ne
+
+ # x11vnc only:
+ if test "$build_x11vnc" = "yes"; then
+- AC_CHECK_HEADERS([pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h])
++ AC_CHECK_HEADERS([pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h pty.h libutil.h util.h])
+ fi
+
+ # Checks for typedefs, structures, and compiler characteristics.
+@@ -777,7 +777,9 @@ fi
+ AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr])
+ # x11vnc only:
+ if test "$build_x11vnc" = "yes"; then
++ AH_TEMPLATE(HAVE_OPENPTY, [Define to `1' if you have the `openpty' function.])
+ AC_CHECK_FUNCS([setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid initgroups waitpid setutxent grantpt shmat])
++ AC_SEARCH_LIBS(openpty, util bsd, [AC_DEFINE(HAVE_OPENPTY)])
+ fi
+
+ # check, if shmget is in cygipc.a