projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90aaba5
)
* lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
author
Jim Meyering
<jim@meyering.net>
Fri, 20 Oct 2006 19:38:02 +0000
(19:38 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 20 Oct 2006 19:38:02 +0000
(19:38 +0000)
Needed for mingw.
ChangeLog
patch
|
blob
|
history
lib/openat-priv.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 32ccac7a5c9dd9a9de7584b5f250bf5c755aab1a..1a54b47c0083331fdce67cfea143dc4bc86c388b 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2006-10-19 Bruno Haible <bruno@clisp.org>
+
+ * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
+ Needed for mingw.
+
2006-10-19 Bruno Haible <bruno@clisp.org>
* m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2006-10-19 Bruno Haible <bruno@clisp.org>
* m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
diff --git
a/lib/openat-priv.h
b/lib/openat-priv.h
index 527cff80822c2c7f4c4abcc5026d0a7e7b02a7a8..2d98821f55ae2b137e9942594b11b5f0f90e05bb 100644
(file)
--- a/
lib/openat-priv.h
+++ b/
lib/openat-priv.h
@@
-34,6
+34,16
@@
char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file);
# endif
#endif
# endif
#endif
+/* Some systems don't have EOPNOTSUPP. */
+#ifndef EOPNOTSUPP
+# ifdef ENOTSUP
+# define EOPNOTSUPP ENOTSUP
+# else
+/* Some systems don't have ENOTSUP either. */
+# define EOPNOTSUPP EINVAL
+# endif
+#endif
+
/* Trying to access a BUILD_PROC_NAME file will fail on systems without
/proc support, and even on systems *with* ProcFS support. Return
nonzero if the failure may be legitimate, e.g., because /proc is not
/* Trying to access a BUILD_PROC_NAME file will fail on systems without
/proc support, and even on systems *with* ProcFS support. Return
nonzero if the failure may be legitimate, e.g., because /proc is not