[PATCH] [FreeBSD 6] Detection of the openpty()

Timur I. Bakeyev timur at com.bat.ru
Sun Jun 7 12:26:20 GMT 2009


This patch against Samba4. It comes with the Heimdal sources and, amoung
other things it requires openpty() presence. FreeBSD has in in standard
libc, so autodetection works, but compilation fails, as declaration of
this function is missing.

This patch adds proper header detection and inclusion for openpty().

With regards,
Timur Bakeyev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-source4__heimdal__lib__roken__rkpty.c
Type: text/x-csrc
Size: 318 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090607/15539695/patch-source4__heimdal__lib__roken__rkpty.bin
-------------- next part --------------
--- ./source4/heimdal_build/internal.m4.orig	2009-04-30 07:53:01.000000000 +0000
+++ ./source4/heimdal_build/internal.m4	2009-06-01 11:49:40.000000000 +0000
@@ -52,7 +52,6 @@
 	errno.h					\
 	inttypes.h				\
 	netdb.h					\
-	pty.h					\
 	signal.h				\
 	sys/bswap.h				\
 	sys/file.h				\
@@ -164,6 +162,7 @@
 m4_include(heimdal/cf/find-func-no-libs2.m4)
 m4_include(heimdal/cf/resolv.m4)
 
+AC_CHECK_HEADERS([pty.h util.h libutil.h])
 
 AC_CHECK_LIB_EXT(util, OPENPTY_LIBS, openpty)
 


More information about the samba-technical mailing list