diff options
author | 2006-06-03 17:19:14 +0000 | |
---|---|---|
committer | 2006-06-03 17:19:14 +0000 | |
commit | e5857b9a1c85658eb042c6bad28658a73f223058 (patch) | |
tree | 05b974da3237b2fc7787d8b44667820e106d0a2e /app-mobilephone/obexftp/files | |
parent | don't unpack the patch twice (diff) | |
download | gentoo-2-e5857b9a1c85658eb042c6bad28658a73f223058.tar.gz gentoo-2-e5857b9a1c85658eb042c6bad28658a73f223058.tar.bz2 gentoo-2-e5857b9a1c85658eb042c6bad28658a73f223058.zip |
Detect and make use of SDP support only when bluetooth USE flag is enabled (#135344).
(Portage version: 2.0.54-r2)
Diffstat (limited to 'app-mobilephone/obexftp/files')
-rw-r--r-- | app-mobilephone/obexftp/files/obexftp-0.21-sdp-detection.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-mobilephone/obexftp/files/obexftp-0.21-sdp-detection.patch b/app-mobilephone/obexftp/files/obexftp-0.21-sdp-detection.patch new file mode 100644 index 000000000000..c1cb7f183feb --- /dev/null +++ b/app-mobilephone/obexftp/files/obexftp-0.21-sdp-detection.patch @@ -0,0 +1,44 @@ +diff -Nru obexftp-0.21.orig/apps/obexftp_sdp.c obexftp-0.21/apps/obexftp_sdp.c +--- obexftp-0.21.orig/apps/obexftp_sdp.c 2006-06-03 20:02:27.529609000 +0300 ++++ obexftp-0.21/apps/obexftp_sdp.c 2006-06-03 20:03:26.753310250 +0300 +@@ -34,6 +34,8 @@ + #include <sys/types.h> + #include <sys/socket.h> + ++#ifdef HAVE_SDPLIB ++ + #include <bluetooth/bluetooth.h> + #include <bluetooth/sdp.h> + #include <bluetooth/sdp_lib.h> +@@ -173,3 +175,17 @@ + return 0; + } + */ ++ ++#else ++ ++void obexftp_sdp_unregister(void) ++{ ++} ++ ++int obexftp_sdp_register(void) ++{ ++ syslog(LOG_ERR, "SDP not supported."); ++ return -1; ++} ++ ++#endif // HAVE_SDPLIB +diff -Nru obexftp-0.21.orig/configure.in obexftp-0.21/configure.in +--- obexftp-0.21.orig/configure.in 2006-06-03 20:02:27.529609000 +0300 ++++ obexftp-0.21/configure.in 2006-06-03 20:00:45.000000000 +0300 +@@ -27,7 +27,9 @@ + AM_ICONV + dnl IRDA_CHECK + BLUETOOTH_CHECK +-SDPLIB_CHECK ++if test $am_cv_bluetooth_found = yes; then ++ SDPLIB_CHECK ++fi + USB_CHECK + + # check for optional swig rebuild |