chiark / gitweb /
Honour dpkg-architecture's DEB_HOST_GNU_TYPE, to fix cross-building.
[chiark-tcl.git] / dgram / hook.c
index 72b3f70b077be7a8374aad4e40d2fbfae95aabdd..6f5a157c8020227ddeaa8dc662394e0b47e2ccc1 100644 (file)
@@ -1 +1,21 @@
-  Tcl_RegisterObjType(&sockaddr_type);
+/* dgram - Tcl extension for udp datagrams
+ * Copyright 2006-2012 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "dgram.h"
+
+CHT_INIT(dgram, CHTI_TYPE(sockaddr_type),
+        CHTI_COMMANDS(cht_dgramsockettoplevel_entries))