Mercurial > hg > orthanc
comparison Resources/Patches/dcmtk-3.6.5.patch @ 3722:a49d49d945c9
fixing openssl compilation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Mar 2020 19:48:19 +0100 |
parents | d737173197e1 |
children | 374e0c6c41d6 |
comparison
equal
deleted
inserted
replaced
3721:c575fb0adf91 | 3722:a49d49d945c9 |
---|---|
1 diff -urEb dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h | 1 diff -urEb dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h |
2 --- dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 14:04:24.601846050 +0100 | 2 --- dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 19:43:37.678302817 +0100 |
3 +++ dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 14:05:12.517692125 +0100 | 3 +++ dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 19:43:41.198312828 +0100 |
4 @@ -152,6 +152,12 @@ | 4 @@ -152,6 +152,12 @@ |
5 /// returns an iterator to the end of the repeating tag dictionary | 5 /// returns an iterator to the end of the repeating tag dictionary |
6 DcmDictEntryListIterator repeatingEnd() { return repDict.end(); } | 6 DcmDictEntryListIterator repeatingEnd() { return repDict.end(); } |
7 | 7 |
8 + // Function by the Orthanc project to load a dictionary from a | 8 + // Function by the Orthanc project to load a dictionary from a |
13 + | 13 + |
14 private: | 14 private: |
15 | 15 |
16 /** private undefined assignment operator | 16 /** private undefined assignment operator |
17 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc | 17 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc |
18 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc 2020-03-05 14:04:24.605846037 +0100 | 18 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc 2020-03-05 19:43:37.682302828 +0100 |
19 +++ dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc 2020-03-05 14:05:37.605611405 +0100 | 19 +++ dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc 2020-03-05 19:43:41.198312828 +0100 |
20 @@ -900,3 +900,6 @@ | 20 @@ -900,3 +900,6 @@ |
21 wrlock().clear(); | 21 wrlock().clear(); |
22 wrunlock(); | 22 wrunlock(); |
23 } | 23 } |
24 + | 24 + |
25 + | 25 + |
26 +#include "dcdict_orthanc.cc" | 26 +#include "dcdict_orthanc.cc" |
27 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc | 27 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc |
28 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc 2020-03-05 14:04:24.605846037 +0100 | 28 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc 2020-03-05 19:43:37.682302828 +0100 |
29 +++ dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc 2020-03-05 14:06:10.033506933 +0100 | 29 +++ dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc 2020-03-05 19:43:41.198312828 +0100 |
30 @@ -36,6 +36,9 @@ | 30 @@ -36,6 +36,9 @@ |
31 #include "dcmtk/dcmdata/dcostrma.h" /* for class DcmOutputStream */ | 31 #include "dcmtk/dcmdata/dcostrma.h" /* for class DcmOutputStream */ |
32 #include "dcmtk/dcmdata/dcwcache.h" /* for class DcmWriteCache */ | 32 #include "dcmtk/dcmdata/dcwcache.h" /* for class DcmWriteCache */ |
33 | 33 |
34 +#undef max | 34 +#undef max |
36 + | 36 + |
37 | 37 |
38 // ******************************** | 38 // ******************************** |
39 | 39 |
40 diff -urEb dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h | 40 diff -urEb dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h |
41 --- dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 14:04:24.609846024 +0100 | 41 --- dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 19:43:37.686302839 +0100 |
42 +++ dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 14:06:52.469370023 +0100 | 42 +++ dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 19:43:41.198312828 +0100 |
43 @@ -63,7 +63,7 @@ | 43 @@ -63,7 +63,7 @@ |
44 | 44 |
45 DCMTK_LOG4CPLUS_INLINE_EXPORT | 45 DCMTK_LOG4CPLUS_INLINE_EXPORT |
46 Mutex::Mutex (Mutex::Type t) | 46 Mutex::Mutex (Mutex::Type t) |
47 - : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t)) + 0) | 47 - : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t)) + 0) |
83 - : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex) + 0) | 83 - : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex) + 0) |
84 + : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex)) | 84 + : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex)) |
85 { } | 85 { } |
86 | 86 |
87 | 87 |
88 diff -urEb dcmtk-3.6.5.orig/oflog/libsrc/oflog.cc dcmtk-3.6.5/oflog/libsrc/oflog.cc | |
89 --- dcmtk-3.6.5.orig/oflog/libsrc/oflog.cc 2020-03-05 19:43:37.690302851 +0100 | |
90 +++ dcmtk-3.6.5/oflog/libsrc/oflog.cc 2020-03-05 19:43:54.622350144 +0100 | |
91 @@ -19,6 +19,10 @@ | |
92 * | |
93 */ | |
94 | |
95 +#ifdef __MINGW32__ | |
96 +# include <winsock.h> | |
97 +#endif | |
98 + | |
99 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ | |
100 #include "dcmtk/oflog/oflog.h" | |
101 | |
88 diff -urEb dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h | 102 diff -urEb dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h |
89 --- dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 14:04:24.637845935 +0100 | 103 --- dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 19:43:37.714302919 +0100 |
90 +++ dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 14:07:17.097290468 +0100 | 104 +++ dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 19:43:41.198312828 +0100 |
91 @@ -575,7 +575,7 @@ | 105 @@ -575,7 +575,7 @@ |
92 */ | 106 */ |
93 void setlinebuf() | 107 void setlinebuf() |
94 { | 108 { |
95 -#if defined(_WIN32) || defined(__hpux) | 109 -#if defined(_WIN32) || defined(__hpux) |