Commit 8d2c903b authored by Timo Teräs's avatar Timo Teräs

main/freetds: fix includes (to build against musl)

parent 4bcc6d4b
......@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.92.79
pkgrel=0
pkgrel=1
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
......@@ -12,11 +12,13 @@ makedepends="unixodbc-dev readline-dev libiconv-dev libtool autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
freetds-libiconv.patch"
freetds-libiconv.patch
fix-includes.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......@@ -46,4 +48,11 @@ package() {
}
md5sums="b97e9bdd3f461af3e8ea559404582f70 freetds-0.92.79.tar.gz
d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch"
d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch
9b58f810335051cd27939ed3d23549be fix-includes.patch"
sha256sums="06b9b3fe797552d93365f1f1f84051f6c292bb0f9fca06a3475852700cf71f50 freetds-0.92.79.tar.gz
8616c79ec80db274200f27028c2a6ec616f9e6494d2cb2591f7bd3c4575c7677 freetds-libiconv.patch
abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch"
sha512sums="d5ede1312ee0c5ad4ed787c243a5e3242f25e4470d9201922df5736883c1c4652fa3483544dc78a945c37d006b173ffa35ba5a0ecfbb67a68b046667a7b51236 freetds-0.92.79.tar.gz
1dd76053477a23428355a704b0b0d5ee652e4c55d4beb46c43ab8c5d5d0eaa6d29accc4a8a1c41e42f4ac20521549b8d6c379773106d6d46299e96ba45a045ce freetds-libiconv.patch
bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch"
--- freetds-0.92.79.orig/src/apps/tsql.c
+++ freetds-0.92.79/src/apps/tsql.c
@@ -33,6 +33,7 @@
# endif
#endif
+#include <getopt.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment