10920b4f2Sagc /* 20920b4f2Sagc * Copyright � 2007 Alistair Crooks. All rights reserved. 30920b4f2Sagc * 40920b4f2Sagc * Redistribution and use in source and binary forms, with or without 50920b4f2Sagc * modification, are permitted provided that the following conditions 60920b4f2Sagc * are met: 70920b4f2Sagc * 1. Redistributions of source code must retain the above copyright 80920b4f2Sagc * notice, this list of conditions and the following disclaimer. 90920b4f2Sagc * 2. Redistributions in binary form must reproduce the above copyright 100920b4f2Sagc * notice, this list of conditions and the following disclaimer in the 110920b4f2Sagc * documentation and/or other materials provided with the distribution. 120920b4f2Sagc * 3. The name of the author may not be used to endorse or promote 130920b4f2Sagc * products derived from this software without specific prior written 140920b4f2Sagc * permission. 150920b4f2Sagc * 160920b4f2Sagc * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 170920b4f2Sagc * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 180920b4f2Sagc * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 190920b4f2Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 200920b4f2Sagc * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 210920b4f2Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 220920b4f2Sagc * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 230920b4f2Sagc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 240920b4f2Sagc * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 250920b4f2Sagc * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 260920b4f2Sagc * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 270920b4f2Sagc */ 280920b4f2Sagc #ifndef FREE2NET_H_ 290920b4f2Sagc #define FREE2NET_H_ 20070828 300920b4f2Sagc 310920b4f2Sagc #include <sys/cdefs.h> 320920b4f2Sagc 330920b4f2Sagc #ifdef __NetBSD__ 340920b4f2Sagc /* general portability macros */ 350920b4f2Sagc #define __FBSDID(x) __RCSID(x) 36*a577a06fSagc #define __DECONST(t, a) (t) __UNCONST(a) 370920b4f2Sagc 380920b4f2Sagc /* this one seems to be missing from ctype.h */ 390920b4f2Sagc #define ishexnumber(x) isxdigit(x) 400920b4f2Sagc #endif 410920b4f2Sagc 420920b4f2Sagc #endif 43