summaryrefslogtreecommitdiff
path: root/dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-11-13 23:45:08 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-11-13 23:45:08 +0000
commit2517e46f9b990ba16ea4c458d3d91e1a2111c820 (patch)
treeb835a7407ed1a16846370fddc919ae54dac249c8 /dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch
parent925e837119e2d523797e821cd6f850d2088da79a (diff)
gcc5 compatible klibc
Diffstat (limited to 'dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch')
-rw-r--r--dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch b/dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch
new file mode 100644
index 00000000..cfbc5f63
--- /dev/null
+++ b/dev-libs/klibc/files/klibc-2.0.2-mkfifo.patch
@@ -0,0 +1,15 @@
+diff -Nuar --exclude '*.g' --exclude '*.cmd' klibc-2.0.2-r1/work/klibc-2.0.2/usr/utils/mkfifo.c klibc-2.0.2.orig/work/klibc-2.0.2/usr/utils/mkfifo.c
+--- klibc-2.0.2-r1/work/klibc-2.0.2/usr/utils/mkfifo.c 2012-10-03 09:41:43.000000000 -0700
++++ klibc-2.0.2.orig/work/klibc-2.0.2/usr/utils/mkfifo.c 2013-12-26 13:19:34.270949780 -0800
+@@ -13,6 +13,11 @@
+
+ char *progname;
+
++int mkfifo (const char *__p, mode_t __m)
++{
++ return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0);
++}
++
+ static int make_fifo(char *dir)
+ {
+ if (mkfifo(dir, leaf_mode)) {