From: Jaroslav Kysela Date: Tue, 3 Nov 2015 20:13:07 +0000 (+0100) Subject: config: fix build with older netinet/ip.h - missing class defines, fixes #3255 X-Git-Tag: v4.2.1~1675 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10ba670c1f0a3381029732beec5bc9857bc488f2;p=thirdparty%2Ftvheadend.git config: fix build with older netinet/ip.h - missing class defines, fixes #3255 --- diff --git a/src/config.c b/src/config.c index 660d1a09a..acf05e630 100644 --- a/src/config.c +++ b/src/config.c @@ -36,6 +36,18 @@ #include +#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);