summaryrefslogtreecommitdiffstats
path: root/gl/lib/fchown-stub.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gl/lib/fchown-stub.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gl/lib/fchown-stub.c b/gl/lib/fchown-stub.c
new file mode 100644
index 0000000..62b6969
--- /dev/null
+++ b/gl/lib/fchown-stub.c
@@ -0,0 +1,16 @@
+#include <config.h>
+
+#include <sys/types.h>
+#include <errno.h>
+
+/* A trivial substitute for 'fchown'.
+
+ DJGPP 2.03 and earlier (and perhaps later) don't have 'fchown',
+ so we pretend no-one has permission for this operation. */
+
+int
+fchown (int fd, uid_t uid, gid_t gid)
+{
+ errno = EPERM;
+ return -1;
+}