hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

ikrt_readdir bugs #250

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

ikrt_readdir added in r1763 has some bugs:

gcc -DHAVE_CONFIG_H -I. -I.. -I../../src -g -O2 -DNDEBUG -O3 -Wall -MT ikarus-io.o -MD -MP -MF .deps/ikarus-io.Tpo -c -o ikarus-io.o ../../src/ikarus-io.c ../../src/ikarus-io.c: In function ‘ikrt_readdir’: ../../src/ikarus-io.c:398: error: ‘struct dirent’ has no member named ‘d_namlen’

The d_namlen field is not POSIX and my Ubuntu doesn't have it.

The return from the C readdir function needs to be checked for error.

Attached is a patch to fix these.

Launchpad Details: #LP358538 Derick Eddington - 2009-04-09 11:42:29 -0400

hyln9 commented 10 years ago

Applied patch in rev 1764. Thanks Derick.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2009-04-09 16:57:39 -0400