components/rtorrent/patches/001-directory.h.patch
author Jingning Ji <jingning.ji@oracle.com>
Thu, 13 Oct 2016 15:53:44 -0700
changeset 7113 cca3def5f97d
parent 6932 ae9e3811b2ec
permissions -rw-r--r--
24759774 Upgrade xml-libxml to 2.0128
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Provide definitions that are missing on Solaris.
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
This patch should be sent upstream.
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
--- rtorrent-0.9.6/src/utils/directory.h.orig	2015-09-07 13:12:40.000000000 -0700
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
+++ rtorrent-0.9.6/src/utils/directory.h	2015-09-16 09:22:02.113830073 -0700
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
@@ -41,6 +41,32 @@
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
 #include <vector>
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
 #include <inttypes.h>
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
 
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
+#if defined(sun) || defined(__sun) || defined(__sun__)
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
+extern "C" {
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
+  enum
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
+  {
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
+    DT_UNKNOWN = 0,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
+#define DT_UNKNOWN     DT_UNKNOWN
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
+    DT_FIFO = 1,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
+#define DT_FIFO        DT_FIFO
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
+    DT_CHR = 2,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
+#define DT_CHR         DT_CHR
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
+    DT_DIR = 4,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
+#define DT_DIR         DT_DIR
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
+    DT_BLK = 6,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
+#define DT_BLK         DT_BLK
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
+    DT_REG = 8,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
+#define DT_REG         DT_REG
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
+    DT_LNK = 10,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
+#define DT_LNK         DT_LNK
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
+    DT_SOCK = 12,
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
+#define DT_SOCK        DT_SOCK
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
+    DT_WHT = 14
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
+#define DT_WHT         DT_WHT
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
+  };
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
+};
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
+#endif
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
+
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
 namespace utils {
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
 
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
 struct directory_entry {