Bug#557160: gpsk31: FTBFS on GNU/kFreeBSD
Package: gpsk31
Version: 0.5-2
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
your package FTBFS on GNU/kFreeBSD given there's no MSG_MORE there.
Please find attached a suggestion, keeping MSG_MORE as flag in send()
if it's defined, and passing no flags otherwise. I'm not sure it's
sufficient for this package to work fine, though.
Thanks for considering.
Mraw,
KiBi.
--- gpsk31-0.5.orig/src/socketif.C
+++ gpsk31-0.5/src/socketif.C
@@ -186,7 +186,13 @@
int tcp_send(char *buf, int len) {
int sts;
- sts = send(stream_fd, buf, len, MSG_MORE);
+ int flags;
+#ifdef MSG_MORE
+ flags = MSG_MORE;
+#else
+ flags = 0;
+#endif
+ sts = send(stream_fd, buf, len, flags);
return sts;
}
Reply to: