bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mingw conflict between mkdtemp and sys_stat


From: Eric Blake
Subject: mingw conflict between mkdtemp and sys_stat
Date: Fri, 13 Oct 2006 18:03:32 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I found that M4 is now failing to compile on mingw ever since I imported the 
clean-temp module due to a conflict between modules:

gcc -mno-cygwin -DHAVE_CONFIG_H -DSIGNAL_SAFE_LIST -I. -I.. -I../../lib     -
g2 -Wall -Werror -MT mkdtemp.o -MD -MP -MF .deps/mkdtemp.Tpo -c -o 
mkdtemp.o ../../lib/mkdtemp.c
../../lib/mkdtemp.c:79:1: "mkdir" redefined
In file included from ../../lib/mkdtemp.c:52:
./sys/stat.h:45:1: this is the location of the previous definition

Any chance we can fix the mkdtemp module depend on the sys_stat module, which 
already takes care of mkdir for mingw, rather than open-coding its own mkdir 
replacement?  And would this be any closer to the glibc implementation?

Also, is there any way to move the -DSIGNAL_SAFE_LIST out of the command line 
and into config.h, to avoid clutter in the make output?

-- 
Eric Blake






reply via email to

[Prev in Thread] Current Thread [Next in Thread]