diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-16 13:36:40 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-16 13:36:40 +0100 |
commit | 8d31a6e50db423b89082b64a3250eec1b94a7456 (patch) | |
tree | 491c357cc4828a95d8dbeeddebf14c1c3038419d /libc/misc/file/lockf.c | |
parent | a716f8ad2c4ba124073ef517f0b4d2f49d3b4bb4 (diff) |
buildsys: link libgcc_eh if DODEBUG
with -O0 we (e.g. lockf) might end up with references to
_Unwind_Resume, so pull in gcc_eh in this case..
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/file/lockf.c')
-rw-r--r-- | libc/misc/file/lockf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/misc/file/lockf.c b/libc/misc/file/lockf.c index 4e398cd10..56b3aac77 100644 --- a/libc/misc/file/lockf.c +++ b/libc/misc/file/lockf.c @@ -16,15 +16,12 @@ see <http://www.gnu.org/licenses/>. */ #include <features.h> - #include <sys/types.h> -#include <unistd.h> #include <fcntl.h> +#include <unistd.h> #include <errno.h> #include <string.h> - - /* lockf is a simplified interface to fcntl's locking facilities. */ int lockf (int fd, int cmd, off_t len) |