diff --git a/srcpkgs/libowfat/patches/fix-glibc.patch b/srcpkgs/libowfat/patches/fix-glibc.patch new file mode 100644 index 00000000000..3122cb8c6b5 --- /dev/null +++ b/srcpkgs/libowfat/patches/fix-glibc.patch @@ -0,0 +1,20 @@ +diff --git a/io/iob_send.c b/io/iob_send.c +index 10a6e8c..81c2763 100644 +--- io/iob_send.c ++++ io/iob_send.c +@@ -122,6 +122,14 @@ int64 iob_send(int64 s,io_batch* b) { + #include "io_internal.h" + #include "iob_internal.h" + ++/* ++ * musl defines SO_ZEROCOPY 60 in sys/socket.h ++ * glibc doesn't, for whatever reason, so do it here ++ */ ++#ifndef SO_ZEROCOPY ++#define SO_ZEROCOPY 60 ++#endif ++ + int64 iob_send(int64 s,io_batch* b) { + iob_entry* e,* last; + io_entry* E; + diff --git a/srcpkgs/libowfat/template b/srcpkgs/libowfat/template index d907ef9f3b2..bf86f193ea6 100644 --- a/srcpkgs/libowfat/template +++ b/srcpkgs/libowfat/template @@ -1,15 +1,15 @@ # Template file for 'libowfat' pkgname=libowfat -version=0.31 -revision=3 +version=0.32 +revision=1 build_style=gnu-makefile make_install_args="prefix=/usr MAN3DIR=/usr/share/man/man3" short_desc="Reimplement libdjb" maintainer="Enno Boland " license="GPL-2" homepage="https://www.fefe.de/libowfat/" -distfiles="https://www.fefe.de/$pkgname/$pkgname-$version.tar.xz" -checksum=d1e4ac1cfccbb7dc51d77d96398e6302d229ba7538158826c84cb4254c7e8a12 +distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz" +checksum=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1 do_build() { make ${makejobs} CC="$CC" OPT_REG="$CFLAGS" OPT_PLUS="$CFLAGS -O3"