Quellcode durchsuchen

Import Debian version 4.21-2

Daniel Baumann vor 17 Jahren
Ursprung
Commit
4feb945253
2 geänderte Dateien mit 23 neuen und 0 gelöschten Zeilen
  1. 1 0
      debian/patches/00list
  2. 22 0
      debian/patches/906-file-hurd.dpatch

+ 1 - 0
debian/patches/00list

@@ -53,5 +53,6 @@
 903-file-localmagic.dpatch
 904-file-make.dpatch
 905-file-segfault.dpatch
+906-file-hurd.dpatch
 998-doc-manpages.dpatch
 999-conglomeration.dpatch

+ 22 - 0
debian/patches/906-file-hurd.dpatch

@@ -0,0 +1,22 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## 906-file-hurd.dpatch by Michael Casadevall <sonicmctails@gmail.com>
+##
+## DP: Fixes a FTBFS on hurd (Closes: #433716).
+
+@DPATCH@
+
+diff -Naur file-4.21.orig/src/magic.c file-4.21/src/magic.c
+--- file-4.21.orig/src/magic.c	2007-03-26 17:59:50.000000000 +0000
++++ file-4.21/src/magic.c	2007-07-19 06:25:16.000000000 +0000
+@@ -58,6 +58,11 @@
+ #include <locale.h>
+ #endif
+ 
++#ifndef PIPE_BUF
++// Get the PIPE_BUF from pathconf
++#define PIPE_BUF pathconf(".", _PC_PIPE_BUF)
++#endif
++
+ #include <netinet/in.h>		/* for byte swapping */
+ 
+ #include "patchlevel.h"