projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get_default_paper_size: Use access instead of fn_exists
[pspp]
/
src
/
output
/
measure.c
diff --git
a/src/output/measure.c
b/src/output/measure.c
index 358958550199c43f148ba638f9afcf2e56eab03a..c352de66d22be708bc0febefe202b7dc5431eec3 100644
(file)
--- a/
src/output/measure.c
+++ b/
src/output/measure.c
@@
-18,6
+18,7
@@
#include "output/measure.h"
#include "output/measure.h"
+#include <unistd.h>
#include <gl/c-strtod.h>
#include <ctype.h>
#include <errno.h>
#include <gl/c-strtod.h>
#include <ctype.h>
#include <errno.h>
@@
-27,7
+28,6
@@
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
-#include "data/file-name.h"
#include "libpspp/str.h"
#include "gl/c-strcase.h"
#include "libpspp/str.h"
#include "gl/c-strcase.h"
@@
-308,7
+308,7
@@
get_default_paper_size (int *h, int *v)
#endif
/* libpaper defaults to /etc/papersize. */
#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. */
return read_paper_conf ("/etc/papersize", h, v);
/* Can't find a default. */