Commits

Paul Jakma authored 238497fc853
[isisd] Add support for Solaris DLPI

2007-08-07 James Carlson <james.d.carlson@sun.com> * configure.ac: Added support for separate link-layer access mechanisms in isisd. * isis_network.c: split up into isis_bpf.c, isis_dlpi.c, and isis_pfpacket.c, selected by autoconf, and added DLPI support. * (general) Fixed to allow compilation and use on Solaris.
No tags

isisd/include-netbsd/iso.h

Modified
185 185
186 186 extern struct domain isodomain;
187 187 extern struct protosw isosw[];
188 188
189 189 #define satosiso(sa) ((struct sockaddr_iso *)(sa))
190 190 #define sisotosa(siso) ((struct sockaddr *)(siso))
191 191
192 192 #else
193 193 /* user utilities definitions from the iso library */
194 194
195 +#ifdef SUNOS_5
196 +#define __P(x) x
197 +#define __BEGIN_DECLS
198 +#define __END_DECLS
199 +#else
195 200 #include <sys/cdefs.h>
201 +#endif
196 202
197 203 __BEGIN_DECLS
198 204 struct iso_addr *iso_addr __P((const char *));
199 205 char *iso_ntoa __P((const struct iso_addr *));
200 206
201 207 /* THESE DON'T EXIST YET */
202 208 struct hostent *iso_gethostbyname __P((const char *));
203 209 struct hostent *iso_gethostbyaddr __P((const char *, int, int));
204 210 __END_DECLS
205 211

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut