require 'formula' class Libxspf < Formula homepage 'http://libspiff.sourceforge.net/' url 'http://downloads.xiph.org/releases/xspf/libxspf-1.2.0.tar.bz2' sha1 '23bbc0573636928210f42699029941dd06b20a1d' depends_on 'pkg-config' => :build depends_on 'cpptest' depends_on 'uriparser' # Fix build against clang and GCC 4.7+ # http://git.xiph.org/?p=libxspf.git;a=commit;h=7f1f68d433f03484b572657ff5df47bba1b03ba6 def patches; DATA; end def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end __END__ diff --git a/examples/read/read.cpp b/examples/read/read.cpp index 411f892..b66a25c 100644 --- a/examples/read/read.cpp +++ b/examples/read/read.cpp @@ -43,6 +43,7 @@ #include #include // MAX_PATH #include // PATH_MAX +#include #if defined(__WIN32__) || defined(WIN32)