Changeset 2322
- Timestamp:
- Jul 10, 2007, 11:30:11 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r2307 r2322 1476 1476 "-DHAVE_STRLCPY", 1477 1477 "-DHAVE_STRLCAT", 1478 "-DHAVE_LIBGEN", 1478 1479 ); 1479 1480 PRODUCT_NAME = transmission; -
trunk/configure
r1750 r2322 177 177 then 178 178 CFLAGS="$CFLAGS -DHAVE_STRLCAT" 179 fi 180 rm -f testconf* 181 } 182 183 libgen_test() 184 { 185 verbose libgen_test 186 cat > testconf.c << EOF 187 #include <libgen.h> 188 int main() 189 { 190 return 0; 191 } 192 EOF 193 if runcmd $CC -o testconf testconf.c 194 then 195 CFLAGS="$CFLAGS -DHAVE_LIBGEN" 179 196 fi 180 197 rm -f testconf* … … 451 468 strlcpy_test 452 469 strlcat_test 470 libgen_test 453 471 454 472 # -
trunk/libtransmission/makemeta.c
r2311 r2322 13 13 #include <sys/stat.h> 14 14 #include <unistd.h> 15 #include <libgen.h>16 15 #include <dirent.h> 17 16 #include <stdio.h> /* FILE, snprintf, stderr */ -
trunk/libtransmission/trcompat.h
r2311 r2322 37 37 #endif 38 38 39 #ifdef HAVE_LIBGEN 40 # include <libgen.h> 41 #else 42 char * 43 dirname(const char *path); 44 char * 45 basename(const char *path); 46 #endif 47 39 48 #endif /* TRCOMPAT_H */ -
trunk/mk/lib.mk
r2306 r2322 7 7 http.c inout.c ipcparse.c list.c makemeta.c metainfo.c natpmp.c \ 8 8 net.c peer.c platform.c ratecontrol.c sha1.c shared.c strlcat.c \ 9 strlcpy.c torrent.c tracker.c transmission.c upnp.c utils.c xml.c 9 strlcpy.c torrent.c tracker.c transmission.c upnp.c utils.c xml.c \ 10 basename.c dirname.c 10 11 11 12 OBJS = $(SRCS:%.c=%.o)
Note: See TracChangeset
for help on using the changeset viewer.