diff options
author | asau <asau@pkgsrc.org> | 2010-06-19 21:09:10 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2010-06-19 21:09:10 +0000 |
commit | 5b815ddc245c7af1dfd061a2c6eb24a46bc95e45 (patch) | |
tree | fde9fe0fc2b257fbd99ed9f4317ba0d1383a39da | |
parent | 7291b186742e6dd0deb314efd2f9395d3dc21adb (diff) | |
download | pkgsrc-5b815ddc245c7af1dfd061a2c6eb24a46bc95e45.tar.gz |
Don't use getline() to build on NetBSD.
-rw-r--r-- | www/mini_httpd/distinfo | 3 | ||||
-rw-r--r-- | www/mini_httpd/patches/patch-ad | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/www/mini_httpd/distinfo b/www/mini_httpd/distinfo index 087e965224c..f4b688b8738 100644 --- a/www/mini_httpd/distinfo +++ b/www/mini_httpd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2009/07/07 19:05:23 joerg Exp $ +$NetBSD: distinfo,v 1.8 2010/06/19 21:09:10 asau Exp $ SHA1 (mini_httpd-1.19/mini_httpd-1.19.tar.gz) = b156a5e0b9b6e2169ed772a5890fc63d8ed60514 RMD160 (mini_httpd-1.19/mini_httpd-1.19.tar.gz) = 4e8ec41bd9238d49481354bcf9404fb11519a667 @@ -6,3 +6,4 @@ Size (mini_httpd-1.19/mini_httpd-1.19.tar.gz) = 42063 bytes SHA1 (patch-aa) = 1bf0a30eae6303e7692f768227daf1751c73c389 SHA1 (patch-ab) = bf74dd6f6a921024e0dde08eeff39fdf64706414 SHA1 (patch-ac) = ccbd255aa5b3580426276e8f2fe211deea3feae5 +SHA1 (patch-ad) = 17fea4bef22eb4f89d442b86378b3b567afa7300 diff --git a/www/mini_httpd/patches/patch-ad b/www/mini_httpd/patches/patch-ad new file mode 100644 index 00000000000..6739cedacbd --- /dev/null +++ b/www/mini_httpd/patches/patch-ad @@ -0,0 +1,24 @@ +$NetBSD: patch-ad,v 1.1 2010/06/19 21:09:11 asau Exp $ + +Avoid clash: getline exists in NetBSD already. + +--- htpasswd.c.orig 2001-12-19 03:08:10.000000000 +0300 ++++ htpasswd.c 2010-06-20 01:02:53.000000000 +0400 +@@ -49,7 +49,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; + + while(1) { +@@ -189,7 +189,7 @@ + strcpy(user,argv[2]); + + 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; |