Thread: xdms 1.3.2
View Single Post
Old 16 August 2006, 12:17   #5
shd
Registered User
 
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
Quote:
Originally Posted by poohbear
One small problem I ran into is that mkstemp doesn't appear to be in MinGW. Deprecated POSIX function perhaps?
You should have emailed me. I can fix the problem directly in the source tree.

Quote:
mkstemps is defined in %MINGW%\lib\libiberty.a, and a quick glance of the GNU mkstemps suggests that mkstemp(p) is equivalent to mkstemps(p,0). So change, lines 288-289 from:

strcpy(tname, "/tmp/xdmsXXXXXX");
fd = mkstemp(tname);

to:

strcpy(tname, "xdmsXXXXXX");
fd = mkstemps(tname,0);

(unless you have a writeable /tmp directory).
One has to have a write /tmp directory, that's a basic requirement for UNIX programs.

Next version (hopefully released soon) will have the fix.
shd is offline  
 
Page generated in 0.07143 seconds with 11 queries