X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmissing.h;h=2661285a227c39fb3d8f181fbbee960aac90ee31;hb=f28964e353e4bfb83990742be6f258cdcc78c03a;hp=939f81d9c4c02f875f545c48f453f35035f140f2;hpb=c09918f97a3c2fc4c8320d327eafd287bc2138da;p=elogind.git diff --git a/src/shared/missing.h b/src/shared/missing.h index 939f81d9c..2661285a2 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef HAVE_AUDIT #include @@ -85,6 +86,19 @@ #define IP_TRANSPARENT 19 #endif +#ifndef IFLA_CARRIER + #define IFLA_CARRIER 33 + #ifndef IFLA_NUM_RX_QUEUES + #define IFLA_NUM_RX_QUEUES 32 + #ifndef IFLA_NUM_TX_QUEUES + #define IFLA_NUM_TX_QUEUES 31 + #ifndef IFLA_PROMISCUITY + #define IFLA_PROMISCUITY 30 + #endif + #endif + #endif +#endif + #if !HAVE_DECL_PIVOT_ROOT static inline int pivot_root(const char *new_root, const char *put_old) { return syscall(SYS_pivot_root, new_root, put_old); @@ -324,10 +338,6 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle # define DRM_IOCTL_DROP_MASTER _IO('d', 0x1f) #endif -#ifndef TMP_MAX -# define TMP_MAX 238328 -#endif - #if defined(__i386__) || defined(__x86_64__) /* The precise definition of __O_TMPFILE is arch specific, so let's