[med-svn] r9733 - trunk/packages/minc/trunk/debian/patches
Steven Michael Robbins
smr at alioth.debian.org
Mon Feb 20 21:12:40 UTC 2012
Author: smr
Date: 2012-02-20 21:12:40 +0000 (Mon, 20 Feb 2012)
New Revision: 9733
Modified:
trunk/packages/minc/trunk/debian/patches/read_file_names-refactor.patch
Log:
Modify patch to not use PATH_MAX at all.
Modified: trunk/packages/minc/trunk/debian/patches/read_file_names-refactor.patch
===================================================================
--- trunk/packages/minc/trunk/debian/patches/read_file_names-refactor.patch 2012-02-20 21:04:34 UTC (rev 9732)
+++ trunk/packages/minc/trunk/debian/patches/read_file_names-refactor.patch 2012-02-20 21:12:40 UTC (rev 9733)
@@ -1,4 +1,6 @@
Description: Work around missing PATH_MAX definition
+ Refactor code of read_file_names() into libminc2,
+ fix so that it does not depend on PATH_MAX.
Author: Steve Robbins <smr at debian.org>
Bug: n/a
Forwarded: no
@@ -23,7 +25,7 @@
libsrc/minc_convenience.c \
--- /dev/null
+++ minc-2.1.00/libsrc/read_file_names.c
-@@ -0,0 +1,104 @@
+@@ -0,0 +1,99 @@
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
@@ -34,15 +36,10 @@
+#include "read_file_names.h"
+
+#define FILE_NAME_ALLOC_SIZE 10
++#define FILE_PATH_MAX 2046
+
-+#if defined(PATH_MAX)
-+# define FILE_PATH_MAX PATH_MAX
-+#else
-+# define FILE_PATH_MAX 2046
-+#endif
+
+
-+
+/* ----------------------------- MNI Header -----------------------------------
+ at NAME : read_file_names
+ at INPUT : filelist - name of file from which to read names
More information about the debian-med-commit
mailing list