The Samba-Bugzilla – Attachment 5819 Details for
Bug 7534
endnetgrent prototype checking is broken for Solaris.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Attempt to fix *netgrent prototype detection on Solaris
0001-s3-build-Attempt-to-fix-netgrent-prototype-detection.patch (text/plain), 2.26 KB, created by
Kai Blin
on 2010-07-02 15:45:00 UTC
(
hide
)
Description:
Attempt to fix *netgrent prototype detection on Solaris
Filename:
MIME Type:
Creator:
Kai Blin
Created:
2010-07-02 15:45:00 UTC
Size:
2.26 KB
patch
obsolete
>From 9521e82361b6918912bfd5d905a0e08e6361a286 Mon Sep 17 00:00:00 2001 >From: Kai Blin <kai@samba.org> >Date: Fri, 2 Jul 2010 22:35:28 +0200 >Subject: [PATCH] s3 build: Attempt to fix *netgrent prototype detection on opensolaris > >--- > source3/configure.in | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) > >diff --git a/source3/configure.in b/source3/configure.in >index 424c320..4c17e4c 100644 >--- a/source3/configure.in >+++ b/source3/configure.in >@@ -6424,21 +6424,27 @@ CFLAGS_SAVE=$CFLAGS > CFLAGS="$CFLAGS -Werror-implicit-function-declaration" > AC_CACHE_CHECK([for setnetgrent prototype],samba_cv_setnetgrent_prototype, [ > AC_TRY_COMPILE([#include<netdb.h> >- #include<netgroup.h>],[setnetgrent("foo")], >+ #ifdef HAVE_NETGROUP_H >+ #include<netgroup.h> >+ #endif],[setnetgrent("foo")], > samba_cv_setnetgrent_prototype=yes, samba_cv_setnetgrent_prototype=no)]) > if test x"$samba_cv_setnetgrent_prototype" = x"yes"; then > AC_DEFINE(HAVE_SETNETGRENT_PROTOTYPE, 1, [If setnetgrent prototype is defined]) > fi > AC_CACHE_CHECK([for getnetgrent prototype],samba_cv_getnetgrent_prototype, [ > AC_TRY_COMPILE([#include<netdb.h> >- #include<netgroup.h>],[char *dom, *user,*host; getnetgrent(&dom,&user,&host)], >+ #ifdef HAVE_NETGROUP_H >+ #include<netgroup.h> >+ #endif],[char *dom, *user,*host; getnetgrent(&dom,&user,&host)], > samba_cv_getnetgrent_prototype=yes, samba_cv_getnetgrent_prototype=no)]) > if test x"$samba_cv_getnetgrent_prototype" = x"yes"; then > AC_DEFINE(HAVE_GETNETGRENT_PROTOTYPE, 1, [If getnetgrent prototype is defined]) > fi > AC_CACHE_CHECK([for endnetgrent prototype],samba_cv_endnetgrent_prototype, [ > AC_TRY_COMPILE([#include<netdb.h> >- #include<netgroup.h>],[endnetgrent()], >+ #ifdef HAVE_NETGROUP_H >+ #include<netgroup.h> >+ #endif],[endnetgrent()], > samba_cv_endnetgrent_prototype=yes, samba_cv_endnetgrent_prototype=no)]) > if test x"$samba_cv_endnetgrent_prototype" = x"yes"; then > AC_DEFINE(HAVE_ENDNETGRENT_PROTOTYPE, 1, [If endnetgrent prototype is defined]) >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7534
:
5814
| 5819