comparison Resources/Patches/e2fsprogs-1.43.8-apple.patch @ 2917:ebd2c9ba66c4

patch for compatibility with Cocoa on OS X
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 12:30:16 +0100
parents
children
comparison
equal deleted inserted replaced
2916:c226799724bf 2917:ebd2c9ba66c4
1 diff -urEb e2fsprogs-1.43.8.orig/lib/uuid/uuid.h.in e2fsprogs-1.43.8/lib/uuid/uuid.h.in
2 --- e2fsprogs-1.43.8.orig/lib/uuid/uuid.h.in 2018-01-02 05:52:58.000000000 +0100
3 +++ e2fsprogs-1.43.8/lib/uuid/uuid.h.in 2018-11-05 12:18:29.962235770 +0100
4 @@ -35,6 +35,20 @@
5 #ifndef _UUID_UUID_H
6 #define _UUID_UUID_H
7
8 +
9 +#if defined(__APPLE__)
10 +// This patch defines the "uuid_string_t" type on OS X, which is
11 +// required if linking against Cocoa (this occurs in Stone of Orthanc)
12 +#include <sys/_types.h>
13 +#include <sys/_types/_uuid_t.h>
14 +
15 +#ifndef _UUID_STRING_T
16 +#define _UUID_STRING_T
17 +typedef __darwin_uuid_string_t uuid_string_t;
18 +#endif /* _UUID_STRING_T */
19 +#endif
20 +
21 +
22 #include <sys/types.h>
23 #ifndef _WIN32
24 #include <sys/time.h>