Add DEBUG=1 to GNUmakefile

the epoll guard broke SIGIO
master
leitner 21 years ago
parent f954d96659
commit 07a205405b

@ -15,7 +15,11 @@ buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a textcode.a
all: t $(LIBS) libowfat.a
CC=gcc
ifneq ($(DEBUG),)
CFLAGS=-pipe -Wall -g
else
CFLAGS=-pipe -Wall -O2 -fomit-frame-pointer
endif
#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
# startrip

@ -31,8 +31,9 @@ int64 io_canread() {
e->next_read=alt_firstread;
alt_firstread=r;
debug_printf(("io_canread: enqueue %ld in alt read queue (next is %ld)\n",alt_firstread,e->next_read));
#endif
#else
e->canread=0;
#endif
return r;
}
}

@ -31,8 +31,9 @@ int64 io_canwrite() {
e->next_write=alt_firstwrite;
alt_firstwrite=r;
debug_printf(("io_canwrite: enqueue %ld in alt write queue (next is %ld)\n",alt_firstwrite,e->next_write));
#endif
#else
e->canwrite=0;
#endif
return r;
}
}

Loading…
Cancel
Save