Index: head/devel/android-tools-adb/Makefile =================================================================== --- head/devel/android-tools-adb/Makefile (revision 326129) +++ head/devel/android-tools-adb/Makefile (revision 326130) @@ -1,26 +1,27 @@ # $FreeBSD$ PORTNAME= android-tools-adb PORTVERSION= 4.3 +PORTREVISION= 1 CATEGORIES= devel DISTNAME= android-platform_system_core-${GH_COMMIT} MAINTAINER= kevlo@FreeBSD.org COMMENT= Android debug bridge command line tool LICENSE= AL2 USE_GITHUB= yes GH_ACCOUNT= android GH_PROJECT= platform_system_core GH_TAGNAME= android-4.3_r2.1 GH_COMMIT= 9cbdf50 USES= gmake WRKSRC= ${WRKDIR}/${DISTNAME}/adb MAKEFILE= ${FILESDIR}/Makefile MAKE_JOBS_UNSAFE= yes PLIST_FILES= bin/adb .include Index: head/devel/android-tools-adb/files/patch-get_my_path_freebsd.c =================================================================== --- head/devel/android-tools-adb/files/patch-get_my_path_freebsd.c (nonexistent) +++ head/devel/android-tools-adb/files/patch-get_my_path_freebsd.c (revision 326130) @@ -0,0 +1,30 @@ +--- get_my_path_freebsd.c.orig 2013-09-03 17:33:27.000000000 +0800 ++++ get_my_path_freebsd.c 2013-09-03 17:41:13.000000000 +0800 +@@ -18,19 +18,18 @@ + */ + + #include ++#include + #include +-#include +-#include + + void + get_my_path(char *exe, size_t maxLen) + { +- char proc[64]; ++ int mib[4] = { ++ CTL_KERN, ++ KERN_PROC, ++ KERN_PROC_PATHNAME, ++ getpid() ++ }; + +- snprintf(proc, sizeof(proc), "/proc/%d/file", getpid()); +- +- int err = readlink(proc, exe, maxLen - 1); +- +- exe[err > 0 ? err : 0] = '\0'; ++ sysctl(mib, 4, exe, &maxLen, NULL, 0); + } +- Property changes on: head/devel/android-tools-adb/files/patch-get_my_path_freebsd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property