From 63a4c9adf227a6f6a5f7f70f6dc3f8863f846927 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 12 Sep 2018 00:28:34 -0400 Subject: remove spurious inclusion of libc.h for LFS64 ABI aliases the LFS64 macro was not self-documenting and barely saved any characters. simply use weak_alias directly so that it's clear what's being done, and doesn't depend on a header to provide a strange macro. --- src/fcntl/open.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fcntl/open.c') diff --git a/src/fcntl/open.c b/src/fcntl/open.c index 3928a6e6..1d817a2d 100644 --- a/src/fcntl/open.c +++ b/src/fcntl/open.c @@ -1,7 +1,6 @@ #include #include #include "syscall.h" -#include "libc.h" int open(const char *filename, int flags, ...) { @@ -21,4 +20,4 @@ int open(const char *filename, int flags, ...) return __syscall_ret(fd); } -LFS64(open); +weak_alias(open, open64); -- cgit v1.2.1