File: libsx-maxpathlen.diff

package info (click to toggle)
libsx 2.05-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,372 kB
  • sloc: ansic: 8,540; makefile: 258
file content (64 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Define MAXPATHLEN if necessary (not defined on Hurd)
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 20111-07-17
Forwarded: no

Index: libsx-2.05/src/dirlist.c
===================================================================
--- libsx-2.05.orig/src/dirlist.c	2011-07-16 12:05:56.000000000 +0100
+++ libsx-2.05/src/dirlist.c	2011-07-16 12:05:56.000000000 +0100
@@ -32,6 +32,10 @@
 #include <sys/param.h>
 #include <sys/stat.h>
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
+
 #ifndef strdup
 extern char *strdup(char *str);
 #endif
Index: libsx-2.05/freq/dirlist.c
===================================================================
--- libsx-2.05.orig/freq/dirlist.c	2011-07-16 12:20:43.000000000 +0100
+++ libsx-2.05/freq/dirlist.c	2011-07-16 12:20:51.000000000 +0100
@@ -31,6 +31,9 @@
 #include <sys/param.h>
 #include <sys/stat.h>
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
 
 void free_table(char **table, int n)
 {
Index: libsx-2.05/freq/freq.c
===================================================================
--- libsx-2.05.orig/freq/freq.c	2011-07-16 12:20:20.000000000 +0100
+++ libsx-2.05/freq/freq.c	2011-07-16 12:20:34.000000000 +0100
@@ -19,6 +19,10 @@
 
 #include "libsx.h"
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
+
 #ifndef CLK_TCK
 #include <unistd.h>
 #define  CLK_TCK  sysconf(_SC_CLK_TCK)    /* seems to work right */
Index: libsx-2.05/src/freq.c
===================================================================
--- libsx-2.05.orig/src/freq.c	2011-07-16 12:21:07.000000000 +0100
+++ libsx-2.05/src/freq.c	2011-07-16 12:21:13.000000000 +0100
@@ -20,6 +20,10 @@
 
 #include "libsx.h"
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
+
 #ifndef CLK_TCK
 #define  CLK_TCK  sysconf(_SC_CLK_TCK)    /* seems to work right */
 #endif  /* CLK_TCK */