Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: fix build with older netinet/ip.h - missing class defines, fi…
…xes #3255
  • Loading branch information
perexg committed Nov 3, 2015
1 parent 646a663 commit 10ba670
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/config.c
Expand Up @@ -36,6 +36,18 @@

#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);

Expand Down

0 comments on commit 10ba670

Please sign in to comment.