summaryrefslogtreecommitdiff
path: root/libc/misc/file/lockf.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:51:04 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:51:04 +0000
commita9e4cbde64ecadb003bb779e096d3f89303c62b1 (patch)
tree52cade2df7aefbc68553a23d0baa4aafe80aabe7 /libc/misc/file/lockf.c
parent42d2cb36eeaa15c78cf309acda5a802491873abe (diff)
Correct some problems
Diffstat (limited to 'libc/misc/file/lockf.c')
-rw-r--r--libc/misc/file/lockf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/file/lockf.c b/libc/misc/file/lockf.c
index 63d6a39c9..2ba81de9a 100644
--- a/libc/misc/file/lockf.c
+++ b/libc/misc/file/lockf.c
@@ -16,6 +16,9 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include <features.h>
+#undef __lockf
+
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
@@ -24,6 +27,7 @@
/* lockf is a simplified interface to fcntl's locking facilities. */
+#undef lockf
int attribute_hidden __lockf (int fd, int cmd, off_t len)
{
struct flock fl;