X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;h=ed94f04c4adf7888e93dae3580ea403815b816af;hb=5fd22ca7771c8175ef05e91e1194c3c4096337f4;hp=312f9fff612eaf597985889e1f6c7b505118c5ff;hpb=2322678e8fddbbf158b01b2720db2636404bba3b;p=pspp-builds.git diff --git a/src/data/make-file.c b/src/data/make-file.c index 312f9fff..ed94f04c 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -31,6 +31,11 @@ #include "gettext.h" #define _(msgid) gettext (msgid) +/* Non ansi compilers may set this */ +#ifndef P_tmpdir +#define P_tmpdir "/tmp" +#endif + /* Creates a temporary file and stores its name in *FILENAME and a file descriptor for it in *FD. Returns success. Caller is responsible for freeing *FILENAME. */