xref: /netbsd-src/external/bsd/nsd/dist/doc/README.icc (revision d90047b5d07facf36e6c01dcc0bded8997ce9cc2)
1Compiling with the Intel C Compiler (ICC) version 7.0.
2
3Configure NSD to use ICC.
4
5$ CC=icc ./configure [configure-options]
6
7Then everything should compile (just ignore the warnings), except on
8RedHat 8.0.  This is due to a bug in the GNU C library used.  This bug
9may apply to other Linux distributions or systems using the GNU C
10library.
11
12To compile NSD with the ICC compiler on RedHat 8.0 you need to patch
13the file /usr/include/bits/byteswap.h.  The following patch should
14work:
15
16--- byteswap.h.orig	2003-02-26 13:59:41.000000000 +0100
17+++ byteswap.h	2003-02-26 13:59:57.000000000 +0100
18@@ -81,7 +81,7 @@
19 	 __v; }))
20 # endif
21 #else
22-# define __bswap_16(x) \
23+# define __bswap_32(x) \
24      (__extension__							      \
25       ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
26 #endif
27