X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fdata%2Fmake-file.c;h=1d32d07e39208ca8cf39997c46cae3428ad747b7;hb=b0254faa92f51d5bdf8e6a78443655b6c188a94e;hp=312f9fff612eaf597985889e1f6c7b505118c5ff;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/src/data/make-file.c b/src/data/make-file.c index 312f9fff..1d32d07e 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -25,12 +25,17 @@ #include #include "filename.h" #include "make-file.h" -#include "message.h" -#include "alloc.h" +#include +#include #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. */