]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: fix build with older netinet/ip.h - missing class defines, fixes #3255
authorJaroslav Kysela <perex@perex.cz>
Tue, 3 Nov 2015 20:13:07 +0000 (21:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 3 Nov 2015 20:13:07 +0000 (21:13 +0100)
src/config.c

index 660d1a09a62a1f6eb263b80d7be123eda850dd59..acf05e630d281b87c060780aaec9422d6a05b112 100644 (file)
 
 #include <netinet/ip.h>
 
+#ifndef IPTOS_CLASS_CS0
+#define IPTOS_CLASS_CS0                 0x00
+#define IPTOS_CLASS_CS1                 0x20
+#define IPTOS_CLASS_CS2                 0x40
+#define IPTOS_CLASS_CS3                 0x60
+#define IPTOS_CLASS_CS4                 0x80
+#define IPTOS_CLASS_CS5                 0xa0
+#define IPTOS_CLASS_CS6                 0xc0
+#define IPTOS_CLASS_CS7                 0xe0
+#endif
+
+
 void tvh_str_set(char **strp, const char *src);
 int tvh_str_update(char **strp, const char *src);