about summary refs log tree commit homepage
path: root/ext/sleepy_penguin/splice.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sleepy_penguin/splice.c')
-rw-r--r--ext/sleepy_penguin/splice.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/sleepy_penguin/splice.c b/ext/sleepy_penguin/splice.c
index 0000244..d291796 100644
--- a/ext/sleepy_penguin/splice.c
+++ b/ext/sleepy_penguin/splice.c
@@ -5,7 +5,6 @@
 #include <fcntl.h>
 #include <assert.h>
 #include <sys/uio.h>
-#include <limits.h>
 #include <unistd.h>
 
 static VALUE sym_EAGAIN;
@@ -147,13 +146,6 @@ void sleepy_penguin_init_splice(void)
         rb_define_const(mod, "F_MORE", UINT2NUM(SPLICE_F_MORE));
 
         /*
-         * The maximum size of an atomic write to a pipe
-         * POSIX requires this to be at least 512 bytes.
-         * Under Linux, this is 4096 bytes.
-         */
-        rb_define_const(mod, "PIPE_BUF", UINT2NUM(PIPE_BUF));
-
-        /*
          * fcntl() command constant used to return the size of a pipe.
          * This constant is only defined when running Linux 2.6.35
          * or later.