#2130 Don't build conntest. Build is broken when --enable-webready. Fixed issue with samples/geotag.cpp on Linux.

This commit is contained in:
Robin Mills 2016-09-29 17:06:02 +00:00
parent b1a9d4493f
commit 1b536bd0ed
2 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,6 @@ include $(top_srcdir)/config/config.mk
# Add source files of sample programs to this list
BINSRC = addmoddel.cpp \
conntest.cpp \
convert-test.cpp \
easyaccess-test.cpp \
exifcomment.cpp \

View File

@ -808,7 +808,11 @@ int main(int argc,const char* argv[])
if ( type == typeImage ) {
time_t t = readImageTime(std::string(arg)) ;
char buffer[1024];
#ifdef __APPLE__
char* path = realpath(arg,buffer);
#else
char* path = realpath(arg,NULL);
#endif
if ( t && path ) {
if ( options.verbose) printf("%s %ld %s",path,(long int)t,asctime(localtime(&t)));
gFiles.push_back(path);