Mercurial > hg > orthanc
comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 890:816dccaeb7cf
Support of kFreeBSD
author | jodogne |
---|---|
date | Mon, 16 Jun 2014 15:39:16 +0200 |
parents | 84513f2ee1f3 |
children | 27d256e0b458 |
comparison
equal
deleted
inserted
replaced
883:50106e80555a | 890:816dccaeb7cf |
---|---|
105 **/ | 105 **/ |
106 #define HOST_NAME_MAX 256 | 106 #define HOST_NAME_MAX 256 |
107 #endif | 107 #endif |
108 | 108 |
109 | 109 |
110 #if defined(__FreeBSD_kernel__) | |
111 /** | |
112 * TO IMPROVE: "_POSIX_HOST_NAME_MAX is only the minimum value that | |
113 * HOST_NAME_MAX can ever have [...] Therefore you cannot allocate an | |
114 * array of size _POSIX_HOST_NAME_MAX, invoke gethostname() and expect | |
115 * that the result will fit." | |
116 * http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00128.html | |
117 **/ | |
118 #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX | |
119 #endif | |
120 | |
121 | |
110 static const char* DEFAULT_PREFERRED_TRANSFER_SYNTAX = UID_LittleEndianImplicitTransferSyntax; | 122 static const char* DEFAULT_PREFERRED_TRANSFER_SYNTAX = UID_LittleEndianImplicitTransferSyntax; |
111 | 123 |
112 /** | 124 /** |
113 * "If we have more than 64 storage SOP classes, tools such as | 125 * "If we have more than 64 storage SOP classes, tools such as |
114 * storescu will fail because they attempt to negotiate two | 126 * storescu will fail because they attempt to negotiate two |