summaryrefslogtreecommitdiff
path: root/udev/udev_sysdeps.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
commit01618658fd82dbc5e6315b639f00e87c6fee3c54 (patch)
treedf8e628d04a81186d6d431fd3b1fa50a3d34987a /udev/udev_sysdeps.c
parent726687ad48bdececed1e7e44387c50e009e28208 (diff)
use autotools
Diffstat (limited to 'udev/udev_sysdeps.c')
-rw-r--r--udev/udev_sysdeps.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/udev/udev_sysdeps.c b/udev/udev_sysdeps.c
index 9447cca936..ef5b09ef89 100644
--- a/udev/udev_sysdeps.c
+++ b/udev/udev_sysdeps.c
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
- * Copyright (C) 2005-2006 Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2005-2008 Kay Sievers <kay.sievers@vrfy.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -20,14 +19,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
-#include <fcntl.h>
-#include <errno.h>
#include <sys/types.h>
-#include "udev.h"
-
-#ifdef __GLIBC__
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t size)
{
size_t bytes = 0;
@@ -70,4 +64,4 @@ size_t strlcat(char *dst, const char *src, size_t size)
*q = '\0';
return bytes;
}
-#endif /* __GLIBC__ */
+#endif /* HAVE_STRLCPY */