patch-upnphttp_c 518 B

1234567891011121314151617
  1. $OpenBSD: patch-upnphttp_c,v 1.6 2017/05/21 14:52:54 sthen Exp $
  2. Index: upnphttp.c
  3. --- upnphttp.c.orig
  4. +++ upnphttp.c
  5. @@ -1426,6 +1426,11 @@ SendResp_icon(struct upnphttp * h, char * icon)
  6. start_dlna_header(&str, 200, "Interactive", mime);
  7. strcatf(&str, "Content-Length: %d\r\n\r\n", size);
  8. + #ifndef MSG_MORE
  9. + /* linux uses this to combine multiple send() calls into a single packet */
  10. + #define MSG_MORE 0
  11. + #endif
  12. +
  13. if( send_data(h, str.data, str.off, MSG_MORE) == 0 )
  14. {
  15. if( h->req_command != EHead )