diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-07-06 12:04:37 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-07-06 12:27:47 (EDT) |
commit | 2615b187c5e446bcba965f21def342e313656201 (patch) | |
tree | 5e247ac9d6499097f7435cd6de22b2b8daa09309 /opkg-opk | |
parent | 4bc1fe19d8cb13cb0d36bf7c213dcf6839e82a46 (diff) |
Deduplicate defs.h under common/
And add `-I"$(top_srcdir)/common"` to CPPFLAGS.
Diffstat (limited to 'opkg-opk')
-rw-r--r-- | opkg-opk/defs.h | 27 | ||||
-rw-r--r-- | opkg-opk/local.mk | 2 | ||||
-rw-r--r-- | opkg-opk/opk/read.c | 2 | ||||
-rw-r--r-- | opkg-opk/opk/write.c | 2 |
4 files changed, 3 insertions, 30 deletions
diff --git a/opkg-opk/defs.h b/opkg-opk/defs.h deleted file mode 100644 index 24e9776..0000000 --- a/opkg-opk/defs.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2023 Patrick McDermott - * - * This file is part of opkg-opk. - * - * opkg-opk 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. - * - * opkg-opk 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 opkg-opk. If not, see <https://www.gnu.org/licenses/>. - */ - -#ifndef OPKG_OPK_DEFS_H_ -#define OPKG_OPK_DEFS_H_ - -#define OPKG_OPK_OK 0 -#define OPKG_OPK_END 1 -#define OPKG_OPK_ERROR -1 - -#endif /* OPKG_OPK_DEFS_H_ */ diff --git a/opkg-opk/local.mk b/opkg-opk/local.mk index 5fbfd8e..6653839 100644 --- a/opkg-opk/local.mk +++ b/opkg-opk/local.mk @@ -1,5 +1,5 @@ opkg_opk_opkg_opk_SOURCES += \ - %reldir%/defs.h \ + common/defs.h \ %reldir%/dirent.c \ %reldir%/dirent.h \ %reldir%/gzip.c \ diff --git a/opkg-opk/opk/read.c b/opkg-opk/opk/read.c index 21fbc66..369fcd7 100644 --- a/opkg-opk/opk/read.c +++ b/opkg-opk/opk/read.c @@ -23,7 +23,7 @@ #include <string.h> #include <sys/stat.h> #include <time.h> -#include "../defs.h" +#include "defs.h" #include "../gzip.h" #include "../i18n.h" #include "../opk.h" diff --git a/opkg-opk/opk/write.c b/opkg-opk/opk/write.c index 284b625..520b5fd 100644 --- a/opkg-opk/opk/write.c +++ b/opkg-opk/opk/write.c @@ -27,7 +27,7 @@ #include <sys/stat.h> #include <sys/sysmacros.h> #include <unistd.h> -#include "../defs.h" +#include "defs.h" #include "../dirent.h" #include "../gzip.h" #include "../i18n.h" |