summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-09-20 19:43:41 +0000
committerKevin Steves <stevesk@pobox.com>2001-09-20 19:43:41 +0000
commit50abba560c1a20ae2b88a0e4dbfc0d1f166588ea (patch)
tree767d45af8bd1bd1fe56d61f8a9b4776b50e2e4e7 /defines.h
parentc3422eb89094e4e56710b2fccfc7aff6294b1cab (diff)
- (stevesk) sun_len, SUN_LEN() configure stuff no longer required
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/defines.h b/defines.h
index 233e0b833..52cd41125 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
1#ifndef _DEFINES_H 1#ifndef _DEFINES_H
2#define _DEFINES_H 2#define _DEFINES_H
3 3
4/* $Id: defines.h,v 1.71 2001/09/15 11:31:54 djm Exp $ */ 4/* $Id: defines.h,v 1.72 2001/09/20 19:43:41 stevesk Exp $ */
5 5
6/* Necessary headers */ 6/* Necessary headers */
7 7
@@ -12,7 +12,7 @@
12#include <netinet/in.h> /* For IPv6 macros */ 12#include <netinet/in.h> /* For IPv6 macros */
13#include <netinet/ip.h> /* For IPTOS macros */ 13#include <netinet/ip.h> /* For IPTOS macros */
14#ifdef HAVE_SYS_UN_H 14#ifdef HAVE_SYS_UN_H
15# include <sys/un.h> /* For SUN_LEN */ 15# include <sys/un.h> /* For sockaddr_un */
16#endif 16#endif
17#ifdef HAVE_SYS_BITYPES_H 17#ifdef HAVE_SYS_BITYPES_H
18# include <sys/bitypes.h> /* For u_intXX_t */ 18# include <sys/bitypes.h> /* For u_intXX_t */
@@ -405,11 +405,6 @@ struct winsize {
405# define __attribute__(x) 405# define __attribute__(x)
406#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ 406#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
407 407
408#ifndef SUN_LEN
409#define SUN_LEN(su) \
410 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
411#endif /* SUN_LEN */
412
413/* *-*-nto-qnx doesn't define this macro in the system headers */ 408/* *-*-nto-qnx doesn't define this macro in the system headers */
414#ifdef MISSING_HOWMANY 409#ifdef MISSING_HOWMANY
415# define howmany(x,y) (((x)+((y)-1))/(y)) 410# define howmany(x,y) (((x)+((y)-1))/(y))