Package: cstream
Version: 2.7.6-1
Severity: normal
Tags: patch

A patch is attached to make it build on kfreebsd-*, that doesn't have O_DIRECT.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages cstream depends on:
ii  libc0.1                       2.11.2-10  Embedded GNU C Library: Shared lib

cstream recommends no packages.

cstream suggests no packages.

-- no debconf information
--- cstream.c.orig      2008-12-19 21:38:37.000000000 +0000
+++ cstream.c   2011-03-30 12:27:43.000000000 +0000
@@ -569,11 +569,16 @@
   }

   if (state->using_o_direct) {
+#ifdef O_DIRECT
     flags |= O_DIRECT;
     if (o->v > 1) {
       fprintf(stderr, "Using O_DIRECT on output file with blocksize %d\n"
              , state->b);
     }
+#else
+    fprintf(stderr, "Trying to use O_DIRECT but this OS doesn't have it\n");
+    exit(2);
+#endif

     if (!o->user_specified_blocksize) {
 #ifdef HAVE_SYS_STATVFS_H

Reply via email to