# HG changeset patch # User John W. Eaton # Date 1524667967 14400 # Node ID ff17e8f333aed02829523d78fd0376d44b2b7b48 # Parent 63a6009ad3df815b23f76f2cd2655bd25902ab5b dicom: fix build for file_stat only in octave::sys namespace diff -r 63a6009ad3df -r ff17e8f333ae dist-files.mk --- a/dist-files.mk Wed Apr 25 08:26:25 2018 -0400 +++ b/dist-files.mk Wed Apr 25 10:52:47 2018 -0400 @@ -467,6 +467,7 @@ of-database-3-fixes.patch \ of-database.mk \ of-dataframe.mk \ + of-dicom-1-fixes.patch \ of-dicom.mk \ of-financial.mk \ of-fits-1-cross-fixes.patch \ diff -r 63a6009ad3df -r ff17e8f333ae src/of-dicom-1-fixes.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/of-dicom-1-fixes.patch Wed Apr 25 10:52:47 2018 -0400 @@ -0,0 +1,12 @@ +diff -uNr a/src/isdicom.cpp b/src/isdicom.cpp +--- a/src/isdicom.cpp 2018-04-08 19:19:05.638729302 -0400 ++++ b/src/isdicom.cpp 2018-04-25 10:44:45.240179042 -0400 +@@ -32,7 +32,7 @@ + reader.SetFileName (filename.c_str ()); + // gdcm::Reader.Read() will return false if the file does not exists but + // also prints to stderr so we check it first. +- return file_stat (filename).exists () && reader.Read (); ++ return octave::sys::file_stat (filename).exists () && reader.Read (); + } + + DEFUN_DLD (isdicom, args, ,