forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file-formula.rb
39 lines (32 loc) · 1.01 KB
/
file-formula.rb
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
require 'formula'
# "File" is a reserved class name
class FileFormula < Formula
homepage 'http://www.darwinsys.com/file/'
url 'ftp://ftp.astron.com/pub/file/file-5.13.tar.gz'
mirror 'http://fossies.org/unix/misc/file-5.13.tar.gz'
sha1 '927651df90ead6b3e036e243109137c7d42c4fb6'
head 'https://github.com/glensc/file.git'
keg_only :provided_by_osx
# Fixed upstream, should be in next release
# See http://bugs.gw.com/view.php?id=230
def patches; DATA; end if MacOS.version < :lion
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-fsect-man5"
system "make install"
end
end
__END__
diff --git a/src/getline.c b/src/getline.c
index e3c41c4..74c314e 100644
--- a/src/getline.c
+++ b/src/getline.c
@@ -76,7 +76,7 @@ getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp)
}
}
-ssize_t
+public ssize_t
getline(char **buf, size_t *bufsiz, FILE *fp)
{
return getdelim(buf, bufsiz, '\n', fp);