mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r6828: More portability fixes
This commit is contained in:
parent
82be497811
commit
f46c532883
@ -85,7 +85,7 @@ sub _prepare_compiler_linker($)
|
||||
|
||||
$output = << '__EOD__';
|
||||
CC=@CC@
|
||||
CC_FLAGS=-Iinclude -I. -I$(srcdir)/include -I$(srcdir) -D_SAMBA_BUILD_ -Ilib @CFLAGS@ @CPPFLAGS@
|
||||
CC_FLAGS=-Iinclude -I. -I$(srcdir)/include -I$(srcdir) -D_SAMBA_BUILD_ -DHAVE_CONFIG_H -Ilib @CFLAGS@ @CPPFLAGS@
|
||||
|
||||
LD=@CC@
|
||||
LD_FLAGS=@LDFLAGS@ @CFLAGS@
|
||||
|
@ -6,7 +6,7 @@ mandir = @mandir@
|
||||
XSLTPROC = @XSLTPROC@
|
||||
INSTALLCMD = @INSTALL@
|
||||
CC = @CC@
|
||||
CFLAGS=@CFLAGS@
|
||||
CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H=
|
||||
|
||||
LIBOBJ = talloc.o
|
||||
|
||||
|
@ -6,7 +6,7 @@ if test "x$GCC" = "xyes"; then
|
||||
fi
|
||||
AC_PROG_INSTALL
|
||||
AC_PATH_PROG(XSLTPROC,xsltproc)
|
||||
AC_CHECK_HEADERS(stdint.h stdarg.h)
|
||||
AC_CHECK_HEADERS(stdint.h stdarg.h unistd.h sys/types.h)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
sinclude(config.m4)
|
||||
AC_OUTPUT(Makefile talloc.pc)
|
||||
|
@ -27,12 +27,21 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDARG_H
|
||||
#include <stdarg.h>
|
||||
|
Loading…
Reference in New Issue
Block a user