diff options
author | roy <roy> | 2009-07-25 19:55:11 +0000 |
---|---|---|
committer | roy <roy> | 2009-07-25 19:55:11 +0000 |
commit | 0e3a3b143912b629f55993c29fbdf2e6c7d54151 (patch) | |
tree | 9bd990d4a78b5c07544c916166d28a0894efd9c9 /www/apache/patches | |
parent | 7f098a4fe9888c3f3199511f73d056572fb4332d (diff) | |
download | pkgsrc-0e3a3b143912b629f55993c29fbdf2e6c7d54151.tar.gz |
Avoid collision with system getline(3).
Diffstat (limited to 'www/apache/patches')
-rw-r--r-- | www/apache/patches/patch-ar | 33 | ||||
-rw-r--r-- | www/apache/patches/patch-as | 24 | ||||
-rw-r--r-- | www/apache/patches/patch-at | 33 |
3 files changed, 90 insertions, 0 deletions
diff --git a/www/apache/patches/patch-ar b/www/apache/patches/patch-ar new file mode 100644 index 00000000000..44677b648a3 --- /dev/null +++ b/www/apache/patches/patch-ar @@ -0,0 +1,33 @@ +$NetBSD: patch-ar,v 1.9 2009/07/25 19:55:11 roy Exp $ + +Avoid collision with system getline(3). + +--- src/support/htdigest.c.orig 2009-07-25 20:49:46.000000000 +0100 ++++ src/support/htdigest.c 2009-07-25 20:50:01.000000000 +0100 +@@ -71,7 +71,7 @@ + while ((line[y++] = line[x++])); + } + +-static int getline(char *s, int n, FILE *f) ++static int get_line(char *s, int n, FILE *f) + { + register int i = 0; + +@@ -158,7 +158,7 @@ + { + static char line[MAX_STRING_LEN]; + +- while (!(getline(line, MAX_STRING_LEN, source))) { ++ while (!(get_line(line, MAX_STRING_LEN, source))) { + putline(target, line); + } + } +@@ -216,7 +216,7 @@ + ap_cpystrn(realm, argv[2], sizeof(realm)); + + found = 0; +- while (!(getline(line, MAX_STRING_LEN, f))) { ++ while (!(get_line(line, MAX_STRING_LEN, f))) { + if (found || (line[0] == '#') || (!line[0])) { + putline(tfp, line); + continue; diff --git a/www/apache/patches/patch-as b/www/apache/patches/patch-as new file mode 100644 index 00000000000..4666c48cc5c --- /dev/null +++ b/www/apache/patches/patch-as @@ -0,0 +1,24 @@ +$NetBSD: patch-as,v 1.9 2009/07/25 19:55:11 roy Exp $ + +Avoid collision with system getline(3). + +--- src/support/htpasswd.c.orig 2009-07-25 20:50:15.000000000 +0100 ++++ src/support/htpasswd.c 2009-07-25 20:50:27.000000000 +0100 +@@ -98,7 +98,7 @@ + * Get a line of input from the user, not including any terminating + * newline. + */ +-static int getline(char *s, int n, FILE *f) ++static int get_line(char *s, int n, FILE *f) + { + register int i = 0; + +@@ -547,7 +547,7 @@ + char scratch[MAX_STRING_LEN]; + + fpw = fopen(pwfilename, "r"); +- while (! (getline(line, sizeof(line), fpw))) { ++ while (! (get_line(line, sizeof(line), fpw))) { + char *colon; + + if ((line[0] == '#') || (line[0] == '\0')) { diff --git a/www/apache/patches/patch-at b/www/apache/patches/patch-at new file mode 100644 index 00000000000..5f386c6c688 --- /dev/null +++ b/www/apache/patches/patch-at @@ -0,0 +1,33 @@ +$NetBSD: patch-at,v 1.1 2009/07/25 19:55:11 roy Exp $ + +Avoid collision with system getline(3). + +--- src/support/logresolve.c.orig 2009-07-25 20:50:40.000000000 +0100 ++++ src/support/logresolve.c 2009-07-25 20:50:51.000000000 +0100 +@@ -71,7 +71,7 @@ + #endif /* !MPE && !WIN32*/ + + static void cgethost(struct in_addr ipnum, char *string, int check); +-static int getline(char *s, int n); ++static int get_line(char *s, int n); + static void stats(FILE *output); + + +@@ -278,7 +278,7 @@ + * gets a line from stdin + */ + +-static int getline (char *s, int n) ++static int get_line (char *s, int n) + { + char *cp; + +@@ -326,7 +326,7 @@ + for (i = 0; i < MAX_ERR + 2; i++) + errors[i] = 0; + +- while (getline(line, MAXLINE)) { ++ while (get_line(line, MAXLINE)) { + if (line[0] == '\0') + continue; + entries++; |