Commit Diff
Diff:
9c4921a5918c8baac9f2e2903dfc6d58a0c63395
c0fc386893584832bea358b512ccdf878f0d49ef
Commit:
c0fc386893584832bea358b512ccdf878f0d49ef
Tree:
38f9fd95cee9787ee1170af2cb38f85f82030a55
Author:
pbug <pbug@delphinusdns.org>
Committer:
pbug <pbug@delphinusdns.org>
Date:
Thu Apr 10 09:58:02 2008 UTC
Message:
* Makefile.linux for building on linux with -f * endian.h for those that don't have NTOHS
blob - /dev/null
blob + ef23d35e029c94e2f46694c923d23d15a11d0a5a (mode 644)
--- /dev/null
+++ Makefile.linux
@@ -0,0 +1,14 @@
+CC=gcc
+#CFLAGS=-DDEBUG
+CFLAGS=
+
+
+build:
+ $(CC) $(CFLAGS) -c additional.c
+ $(CC) $(CFLAGS) -c main.c
+ $(CC) $(CFLAGS) -c parse.c
+ $(CC) $(CFLAGS) -c reply.c
+ $(CC) $(CFLAGS) -o wildcarddnsd additional.o main.o parse.o reply.o -ldb
+
+clean:
+ rm -f *.o wildcarddnsd
blob - /dev/null
blob + 798c19177b8d4db6f23189bf515b40b1b0ce8056 (mode 644)
--- /dev/null
+++ endian.h
@@ -0,0 +1,40 @@
+/* $OpenBSD: endian.h,v 1.18 2006/03/27 07:09:24 otto Exp $ */
+
+/*-
+ * Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Generic definitions for little- and big-endian systems. Other endianesses
+ * has to be dealt with in the specific machine/endian.h file for that port.
+ *
+ * This file is meant to be included from a little- or big-endian port's
+ * machine/endian.h after setting _BYTE_ORDER to either 1234 for little endian
+ * or 4321 for big..
+ */
+
+#define NTOHL(x) (x) = ntohl((u_int32_t)(x))
+#define NTOHS(x) (x) = ntohs((u_int16_t)(x))
+#define HTONL(x) (x) = htonl((u_int32_t)(x))
+#define HTONS(x) (x) = htons((u_int16_t)(x))
+
repomaster@centroid.eu