1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r4467: - tdb standalone build doesn't need -DSTANDALONE any more

- fixed standalone build
(This used to be commit ade0b71e41)
This commit is contained in:
Andrew Tridgell 2005-01-01 05:08:41 +00:00 committed by Gerald (Jerry) Carter
parent f9e507980e
commit 70067ef957
2 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,13 @@
# Makefile for tdb directory
#
CFLAGS = -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
CFLAGS = -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
CC = gcc
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
TDB_OBJ = common/tdb.o common/spinlock.o
default: $(PROGS)
all: $(PROGS)
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm

View File

@ -219,7 +219,7 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
if (getpid() == pids[0]) {
for (i=0;i<NPROC-1;i++) {
int status;
if (sys_waitpid(pids[i+1], &status, 0) != pids[i+1]) {
if (waitpid(pids[i+1], &status, 0) != pids[i+1]) {
printf("failed to wait for %d\n",
(int)pids[i+1]);
exit(1);