Browse Source

Add DEBUG=1 to GNUmakefile

the epoll guard broke SIGIO
master
Felix von Leitner 18 years ago
parent
commit
fb3d2aaff4
  1. 4
      GNUmakefile
  2. 3
      io/io_canread.c
  3. 3
      io/io_canwrite.c

4
GNUmakefile

@ -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

3
io/io_canread.c

@ -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;
}
}

3
io/io_canwrite.c

@ -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