From 464d28f3278a0295e488449eb0b81bf199b78184 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 26 Nov 2019 22:14:23 +0000 Subject: [PATCH] Provide osdep.[ch], currently empty These will be used for compatibility implementations. Signed-off-by: Ian Jackson --- Dir.sd.mk | 2 +- osdep.c | 27 +++++++++++++++++++++++++++ osdep.h | 29 +++++++++++++++++++++++++++++ secnet.h | 2 ++ 4 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 osdep.c create mode 100644 osdep.h diff --git a/Dir.sd.mk b/Dir.sd.mk index 358e102..05c39e3 100644 --- a/Dir.sd.mk +++ b/Dir.sd.mk @@ -53,7 +53,7 @@ OBJECTS:=secnet.o util.o conffile.yy.o conffile.tab.o conffile.o modules.o \ comm-common.o polypath.o privcache.o \ netlink.o rsa.o dh.o serpent.o serpentbe.o \ md5.o sha512.o tun.o slip.o sha1.o ipaddr.o log.o \ - process.o @LIBOBJS@ \ + process.o osdep.o @LIBOBJS@ \ hackypar.o base91s/base91.o # version.o is handled specially below and in the link rule for secnet. diff --git a/osdep.c b/osdep.c new file mode 100644 index 0000000..7bb7aaa --- /dev/null +++ b/osdep.c @@ -0,0 +1,27 @@ +/* + * osdep.c + * - portability routines + */ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet 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 3 of the License, or + * (at your option) any later version. + * + * secnet 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 + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ + +#include "config.h" +#include "osdep.h" +#include "secnet.h" +#include "util.h" diff --git a/osdep.h b/osdep.h new file mode 100644 index 0000000..a89958d --- /dev/null +++ b/osdep.h @@ -0,0 +1,29 @@ +/* + * osdep.c + * - portability routines + */ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet 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 3 of the License, or + * (at your option) any later version. + * + * secnet 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 + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ + +#ifndef osdep_h +#define osdep_h + +#include "config.h" + +#endif /* osdep_h */ diff --git a/secnet.h b/secnet.h index 84e732d..afc635a 100644 --- a/secnet.h +++ b/secnet.h @@ -45,6 +45,8 @@ #include +#include "osdep.h" + #define MAX_PEER_ADDRS 5 /* send at most this many copies; honour at most that many addresses */ -- 2.30.2