diff options
author | Danny Holman <dholman@gymli.org> | 2023-01-04 00:56:33 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2023-01-04 00:56:33 -0600 |
commit | 36d00051de9152546eddfbc84223cee251aee87a (patch) | |
tree | 2f9c5ee2ee4308bac9148bf0422eb4bbccb978c1 /server/include/mini-rat.h | |
parent | a67f97b904c64b21381347299d095006f48e8bce (diff) |
server: add a main header and source file
Add a main header and source file so that every required header is
checked against the config.h generated by autoconf.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'server/include/mini-rat.h')
-rw-r--r-- | server/include/mini-rat.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/server/include/mini-rat.h b/server/include/mini-rat.h new file mode 100644 index 0000000..c3f076e --- /dev/null +++ b/server/include/mini-rat.h @@ -0,0 +1,56 @@ +/* + * Mini-RAT Server + * Copyright (C) 2022 Danny Holman <dholman@gymli.org> + * + * 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 program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MINI_RAT_H +#define MINI_RAT_H + +#include "config.h" + +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#endif + +#ifdef HAVE_PTHREAD_H +#include <pthread.h> +#endif + +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + +#ifdef HAVE_STDIO_H +#include <stdio.h> +#endif + +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + +#ifdef HAVE_STRING_H +#include <string.h> +#endif + +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +#endif // ifndef MINI_RAT_H |