alexandrezia/showtime — comment on commit 6611e4f41b9129d839a45f3f9a2f74695797ea6c
File:  line 0
By alexandrezia:

Hi,
I am using Xcode 4.0.2 on Snow Leopard:

cpp --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

echo -e "#include \npath_max=PATH_MAX" | cpp | grep path_max
path_max=1024

It fails here:

CC	build.osx/src/blobcache.o
/Users/arz/Documents/workspace/showtime/src/blobcache.c: In function ‘blobcache_prune_old’:
/Users/arz/Documents/workspace/showtime/src/blobcache.c:308: error: ‘PATH_MAX’ undeclared (first use in this function)
/Users/arz/Documents/workspace/showtime/src/blobcache.c:308: error: (Each undeclared identifier is reported only once
/Users/arz/Documents/workspace/showtime/src/blobcache.c:308: error: for each function it appears in.)
cc1: warnings being treated as errors
/Users/arz/Documents/workspace/showtime/src/blobcache.c:310: warning: unused variable ‘path3’
/Users/arz/Documents/workspace/showtime/src/blobcache.c:309: warning: unused variable ‘path2’
/Users/arz/Documents/workspace/showtime/src/blobcache.c:308: warning: unused variable ‘path’
make: *** [build.osx/src/blobcache.o] Error 1
make: *** Waiting for unfinished jobs....