The latter has portability problems. Also access checks that the file is readable not only
that it exists.
#include "output/measure.h"
+#include <unistd.h>
#include <gl/c-strtod.h>
#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
-#include "data/file-name.h"
#include "libpspp/str.h"
#include "gl/c-strcase.h"
#endif
/* libpaper defaults to /etc/papersize. */
- if (fn_exists ("/etc/papersize"))
+ if (0 == access ("/etc/papersize", R_OK))
return read_paper_conf ("/etc/papersize", h, v);
/* Can't find a default. */