summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-18 07:16:13 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-18 07:36:35 +0200
commitf45ea151b7a5b184ed761d63fb15c3a962278ead (patch)
tree1a1244930e44b8888d8ac65c01f402c93ab7d498
parent913589a5c9c2f1451e0bb04cc0d8ad2ecbf7fd8d (diff)
move libc-sha1.h to libc-sha1.c
-rw-r--r--Makefile2
-rw-r--r--src/libc-sha1.c (renamed from src/libc-sha1.h)2
-rw-r--r--src/libc.c2
3 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cb0f63f..5e42e9e 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ runtime/libc.so: private override CPPFLAGS += -D_GNU_SOURCE
runtime/libc.so: private override LDFLAGS += -Wl,-wrap,_IO_file_xsputn
runtime/libc.so: private override CFLAGS += -Wno-deprecated-declarations
runtime/libc.so: private override LDLIBS += `pkg-config --libs libbsd libunwind`
-runtime/libc.so: verbose src/libc.c src/libc-stdio.c
+runtime/libc.so: verbose src/libc.c src/libc-stdio.c src/libc-sha1.c
runtime/libpthread.so: private override CPPFLAGS += -D_GNU_SOURCE
runtime/libpthread.so: private override LDLIBS += -lpthread
runtime/libpthread.so: src/libpthread.c
diff --git a/src/libc-sha1.h b/src/libc-sha1.c
index 43b562a..b455c16 100644
--- a/src/libc-sha1.h
+++ b/src/libc-sha1.c
@@ -1,5 +1,3 @@
-#pragma once
-
/*
SHA-1 in C
By Steve Reid <steve@edmweb.com>
diff --git a/src/libc.c b/src/libc.c
index e4c80a7..7f7b42b 100644
--- a/src/libc.c
+++ b/src/libc.c
@@ -83,8 +83,6 @@ tkill(int tid, int sig)
return syscall(SYS_tkill, tid, sig);
}
-#include "libc-sha1.h"
-
// Stuff needed for runtime compatibility, but not neccessary for linking
// Also stuff that exists in glibc, but needs to be wrapped for runtime compatibility