Commit 00286505 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/dvbinfo/udp.c: Some OS-es do not support SOL_IP and SOL_IPV6, so...

examples/dvbinfo/udp.c: Some OS-es do not support SOL_IP and SOL_IPV6, so provide alternatives for them.
parent e9165fcf
......@@ -47,6 +47,16 @@
# include <arpa/inet.h>
#endif
#ifndef SOL_IP
# define SOL_IP IPPROTO_IP
#endif
#ifndef SOL_IPV6
# define SOL_IPV6 IPPROTO_IPV6
#endif
#ifndef IPPROTO_IPV6
# define IPPROTO_IPV6 41 /* IANA */
#endif
#include <assert.h>
#include "udp.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment