mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
f9e507980e
commit
70067ef957
@ -2,13 +2,13 @@
|
|||||||
# Makefile for tdb directory
|
# Makefile for tdb directory
|
||||||
#
|
#
|
||||||
|
|
||||||
CFLAGS = -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
|
CFLAGS = -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
|
PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture
|
||||||
TDB_OBJ = common/tdb.o common/spinlock.o
|
TDB_OBJ = common/tdb.o common/spinlock.o
|
||||||
|
|
||||||
default: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
|
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
|
||||||
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
|
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
|
||||||
|
@ -219,7 +219,7 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
|
|||||||
if (getpid() == pids[0]) {
|
if (getpid() == pids[0]) {
|
||||||
for (i=0;i<NPROC-1;i++) {
|
for (i=0;i<NPROC-1;i++) {
|
||||||
int status;
|
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",
|
printf("failed to wait for %d\n",
|
||||||
(int)pids[i+1]);
|
(int)pids[i+1]);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user