diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:28:55 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:28:55 -0500 |
| commit | ed374a822d29d53b82f7aa5338ddc88ac844fe19 (patch) | |
| tree | 8ff0b810524ffe86a830ffb6c9892e0dbcee09cd /src | |
| parent | f9506b4b0c6aedbc38a10fbf432ea3b04465763f (diff) | |
include <locale.h> in <nonstd/locale.h>
Diffstat (limited to 'src')
| -rw-r--r-- | src/nonstd/SYSCALL.c | 2 | ||||
| -rw-r--r-- | src/nonstd/syscall_lookup_t.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/nonstd/SYSCALL.c b/src/nonstd/SYSCALL.c index b5cab01c..4f4ce61a 100644 --- a/src/nonstd/SYSCALL.c +++ b/src/nonstd/SYSCALL.c @@ -2,7 +2,7 @@ #define SYSCALL(_name, _type, _err, _a1, _a2, _a3, _a4, _a5, _a6) \ static int _scno = -2; \ - if (_scno == -2) { _scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))(_name); } \ + if (_scno == -2) { _scno = ((long (*)(const char *))__libc(SYSCALL_LOOKUP))(_name); } \ long _ret = __syscall(_scno, _a1, _a2, _a3, _a4, _a5, _a6); \ if (_ret < 0) { \ errno = -_ret; \ diff --git a/src/nonstd/syscall_lookup_t.c b/src/nonstd/syscall_lookup_t.c deleted file mode 100644 index d30bdbc2..00000000 --- a/src/nonstd/syscall_lookup_t.c +++ /dev/null @@ -1,3 +0,0 @@ -#include <nonstd/syscall.h> - -typedef long (*syscall_lookup_t)(const char *); |
