mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Add support for OpenBSD. Provided by djg@gregor.com.
This commit is contained in:
parent
edcd5b272d
commit
b015c8db24
6 changed files with 86 additions and 5 deletions
3
Makefile
3
Makefile
|
|
@ -295,6 +295,9 @@ makeconfig: .makefiles buildtools
|
||||||
NetBSD) \
|
NetBSD) \
|
||||||
PLATFORM="netbsd" \
|
PLATFORM="netbsd" \
|
||||||
;; \
|
;; \
|
||||||
|
OpenBSD) \
|
||||||
|
PLATFORM="openbsd" \
|
||||||
|
;; \
|
||||||
FreeBSD) \
|
FreeBSD) \
|
||||||
MAJRELEASE=`echo $$OSRELEASE | sed 's/\..*//'` ; \
|
MAJRELEASE=`echo $$OSRELEASE | sed 's/\..*//'` ; \
|
||||||
if [ $$MAJRELEASE -lt 3 ]; then \
|
if [ $$MAJRELEASE -lt 3 ]; then \
|
||||||
|
|
|
||||||
38
build/platforms/openbsd-cc/Make-platform
Normal file
38
build/platforms/openbsd-cc/Make-platform
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# LDAP OpenBSD cc Make-platform file
|
||||||
|
# on OpenBSD, cc is gcc
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# add any platform-specific overrides below here
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# you will probably not need to edit anything below this point
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
CC = gcc
|
||||||
|
|
||||||
|
PLATFORMCFLAGS= -Dopenbsd
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.if (${KERBEROS} == "yes")
|
||||||
|
KERBEROS=-DKERBEROS
|
||||||
|
KRBINCLUDEFLAG = -I/usr/include/kerberosIV
|
||||||
|
KRBLIBS = -lkrb -ldes
|
||||||
|
.endif
|
||||||
|
|
||||||
|
LDBMBACKEND=-DLDBM_USE_DBBTREE
|
||||||
|
|
||||||
|
THREADS=-DNO_THREADS
|
||||||
|
|
||||||
|
LDAP_SENDMAIL=/usr/sbin/sendmail
|
||||||
|
LDAP_EDITOR=/usr/bin/vi
|
||||||
|
LDAP_FINGER=/usr/bin/finger
|
||||||
|
|
||||||
|
LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA
|
||||||
|
|
||||||
|
LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS
|
||||||
|
LDAP_TCP_WRAPPERS_LIB=-lwrap
|
||||||
|
|
||||||
39
build/platforms/openbsd-gcc/Make-platform
Normal file
39
build/platforms/openbsd-gcc/Make-platform
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
#
|
||||||
|
# LDAP OpenBSD GNU C Make-platform file
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# add any platform-specific overrides below here
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# you will probably not need to edit anything below this point
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
CC = gcc
|
||||||
|
|
||||||
|
PLATFORMCFLAGS= -Dopenbsd
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.if (${KERBEROS} == "yes")
|
||||||
|
KERBEROS=-DKERBEROS
|
||||||
|
KRBINCLUDEFLAG = -I/usr/include/kerberosIV
|
||||||
|
KRBLIBS = -lkrb -ldes
|
||||||
|
.endif
|
||||||
|
|
||||||
|
# Use DB BTREE
|
||||||
|
LDBMBACKEND=-DLDBM_USE_DBBTREE
|
||||||
|
|
||||||
|
THREADS=-DNO_THREADS
|
||||||
|
|
||||||
|
LDAP_SENDMAIL=/usr/sbin/sendmail
|
||||||
|
LDAP_EDITOR=/usr/bin/vi
|
||||||
|
LDAP_FINGER=/usr/bin/finger
|
||||||
|
|
||||||
|
LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA
|
||||||
|
|
||||||
|
LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS
|
||||||
|
LDAP_TCP_WRAPPERS_LIB=-lwrap
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifdef KERBEROS
|
#if defined(KERBEROS) && !defined(openbsd)
|
||||||
/*
|
/*
|
||||||
* $Source: /usr/local/src/ldap/clients/ud/RCS/string_to_key.c,v $
|
* $Source: /repo/OpenLDAP/pkg/ldap/clients/ud/string_to_key.c,v $
|
||||||
* $Author: lsloan $
|
* $Author: kurt $
|
||||||
*
|
*
|
||||||
* Copyright 1985, 1986, 1987, 1988, 1989 by the Massachusetts Institute
|
* Copyright 1985, 1986, 1987, 1988, 1989 by the Massachusetts Institute
|
||||||
* of Technology.
|
* of Technology.
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid_string_to_key_c[] =
|
static char rcsid_string_to_key_c[] =
|
||||||
"$Id: string_to_key.c,v 1.5 1995/11/09 20:29:55 lsloan Exp $";
|
"$Id: string_to_key.c,v 1.1.3.1 1998/08/08 22:43:17 kurt Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <mit-copyright.h>
|
#include <mit-copyright.h>
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
* Are sys_errlist and sys_nerr declared in stdio.h?
|
* Are sys_errlist and sys_nerr declared in stdio.h?
|
||||||
*/
|
*/
|
||||||
#ifndef SYSERRLIST_IN_STDIO
|
#ifndef SYSERRLIST_IN_STDIO
|
||||||
#if defined( freebsd ) || defined( netbsd ) || \
|
#if defined( freebsd ) || defined( netbsd ) || defined( openbsd ) || \
|
||||||
defined( __GLIBC__ ) && ( __GLIBC__ > 1 )
|
defined( __GLIBC__ ) && ( __GLIBC__ > 1 )
|
||||||
#define SYSERRLIST_IN_STDIO
|
#define SYSERRLIST_IN_STDIO
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
*
|
*
|
||||||
* Library of functions implementing reader/writer locks
|
* Library of functions implementing reader/writer locks
|
||||||
*/
|
*/
|
||||||
|
#include <stdlib.h>
|
||||||
#include <lthread.h>
|
#include <lthread.h>
|
||||||
#include <lthread_rdwr.h>
|
#include <lthread_rdwr.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue