openbsd-ports/devel/bluetooth-libs/patches/patch-libsdp_search_c
grange f86f319f86 Import bluetooth-libs, a few Bluetooth network libraries
derived from FreeBSD.

Help and ok sturm@.
2005-07-16 20:45:39 +00:00

24 lines
566 B
Plaintext

$OpenBSD: patch-libsdp_search_c,v 1.1.1.1 2005/07/16 20:45:39 grange Exp $
--- libsdp/search.c.orig Sat Jul 16 00:35:53 2005
+++ libsdp/search.c Sat Jul 16 00:41:50 2005
@@ -29,6 +29,7 @@
* $FreeBSD: src/lib/libsdp/search.c,v 1.7 2004/12/09 18:57:12 emax Exp $
*/
+#include <sys/types.h>
#include <sys/uio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -188,7 +189,11 @@ sdp_search(void *xss,
return (-1);
}
if (len < sizeof(xpdu)) {
+#ifdef __FreeBSD__
ss->error = ENOMSG;
+#else
+ ss->error = EAGAIN;
+#endif
return (-1);
}