diff --git a/samples/Makefile b/samples/Makefile index 3ddeb8bb..407f55b2 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -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 \ diff --git a/samples/geotag.cpp b/samples/geotag.cpp index af581451..062c596d 100644 --- a/samples/geotag.cpp +++ b/samples/geotag.cpp @@ -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);