gpsk31 (0.5-6) MSG_MORE.patch

Summary

 src/socketif.C |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

Description: Only pass MSG_MORE if it's defined
Bug-Debian: http://bugs.debian.org/557160

Index: gpsk31-0.5/src/socketif.C
===================================================================
--- gpsk31-0.5.orig/src/socketif.C	2010-05-08 16:08:35.883920752 +0200
+++ gpsk31-0.5/src/socketif.C	2010-05-08 16:08:32.075934694 +0200
@@ -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;
 }