error() function is glibc-specific, make own implementation

This commit is contained in:
Alexander Zubkov
2021-12-12 17:45:39 +01:00
parent 01f6592f49
commit 507f4e664d
4 changed files with 29 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
#include <stdio.h>
#include <sys/mman.h>
#include <string.h>
#include <error.h>
#include <errno.h>
#include "config.h"
@@ -173,7 +172,9 @@ double nodes2mb(pos_t n) {
return sizeof(struct node) * (double)n / (double)(1 << 20);
}
int main(void) {
int main(int argc, const char *argv[]) {
init_err();
bit_t b[IPMAXLEN];
mask_t m;
char s[BUFLEN];