* samba/configure.in: Don't check for union semun.

* samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
declare union semun.
This commit is contained in:
Andrew V. Samoilov 2002-07-29 15:19:36 +00:00
parent 7bab33656b
commit 3e982cf3fc
3 changed files with 6 additions and 21 deletions

View File

@ -1,3 +1,9 @@
2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
* samba/configure.in: Don't check for union semun.
* samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
declare union semun.
2002-07-26 Pavel Roskin <proski@gnu.org>
* direntry.c (vfs_s_find_entry_linear): Canonicalize path before

View File

@ -244,17 +244,6 @@ if test x"$samba_cv_have_longlong" = x"yes"; then
AC_DEFINE(HAVE_LONGLONG, 1, [Define if long long is usable])
fi
AC_CACHE_CHECK([for union semun],samba_cv_HAVE_UNION_SEMUN,[
AC_TRY_RUN([
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
main() { union semun ss; exit(0); }],
samba_cv_HAVE_UNION_SEMUN=yes,samba_cv_HAVE_UNION_SEMUN=no,samba_cv_HAVE_UNION_SEMUN=cross)])
if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
AC_DEFINE(HAVE_UNION_SEMUN, 1, [Defne if union semun is already defined])
fi
AC_CACHE_CHECK([for sin_len in sock],samba_cv_HAVE_SOCK_SIN_LEN,[
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/socket.h>

View File

@ -603,16 +603,6 @@ extern int errno;
#define MAP_FILE 0
#endif
#ifdef HAVE_SYSV_IPC
#ifndef HAVE_UNION_SEMUN
union semun {
int val;
struct semid_ds *buf;
unsigned short *array;
};
#endif
#endif
#if (!defined(WITH_NISPLUS) && !defined(WITH_LDAP))
#define USE_SMBPASS_DB 1
#endif