diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-30 03:32:36 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-30 03:32:36 +0200 |
commit | 0d0a857c696b653a65c709bbfb11bdaff67369b8 (patch) | |
tree | e1c26da2053f8b4801b5120517b16838b7a66c32 /src/compat.h | |
parent | 4f082c7df3998cdc2cdf9845a62d886d05257cb8 (diff) | |
download | fastd-0d0a857c696b653a65c709bbfb11bdaff67369b8.tar fastd-0d0a857c696b653a65c709bbfb11bdaff67369b8.zip |
Use SOCK_NONBLOCK where available
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h index ea3f109..e3d9e49 100644 --- a/src/compat.h +++ b/src/compat.h @@ -60,6 +60,13 @@ struct ethhdr { #define IP_FREEBIND 15 #endif + +#ifndef SOCK_NONBLOCK +#define NO_HAVE_SOCK_NONBLOCK +#define SOCK_NONBLOCK 0 +#endif + + #ifndef HAVE_GET_CURRENT_DIR_NAME #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) |