From: Karel Zak Date: Thu, 15 Oct 2009 23:00:27 +0000 (+0200) Subject: ldattach: use c.h X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=becc79d5b6541f5f4192c460b46864381d49bed6;p=util-linux ldattach: use c.h Signed-off-by: Karel Zak --- diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 19f70fe6..b4563aee 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -25,6 +25,7 @@ #include #include +#include "c.h" #include "nls.h" #define dbg(format, arg...) \ @@ -38,10 +39,6 @@ # define N_PPS 18 #endif -#ifndef ARRAY_SIZE -# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -#endif - /* attach a line discipline ioctl */ #ifndef TIOCSETD # define TIOCSETD 0x5423