From: Roy Marples Date: Wed, 20 Feb 2008 19:09:30 +0000 (+0000) Subject: Bail out of sys/queue.h lacks STAILQ X-Git-Tag: v3.2.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6da1a3d0cf375fc9f2087d0a3ef2dfa5f1a8269a;p=thirdparty%2Fdhcpcd.git Bail out of sys/queue.h lacks STAILQ --- diff --git a/interface.h b/interface.h index 9c42ec6f..3f42ef5c 100644 --- a/interface.h +++ b/interface.h @@ -84,6 +84,10 @@ # define IN_LINKLOCAL(addr) ((addr & IN_CLASSB_NET) == LINKLOCAL_ADDR) #endif +#ifndef STAILQ_ENTRY +# error "your sys/queue.h is too old and lacks STAILQ" +#endif + #define NSTAILQ_FOREACH(var, head, field) \ if (head) STAILQ_FOREACH (var, head, field)