aboutsummaryrefslogtreecommitdiff
path: root/io/mknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/mknod.c')
-rw-r--r--io/mknod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/mknod.c b/io/mknod.c
index 9eb4a2a..22566b2 100644
--- a/io/mknod.c
+++ b/io/mknod.c
@@ -15,13 +15,13 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
-#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
int
__mknod (const char *path, mode_t mode, dev_t dev)
{
- return __xmknod (_MKNOD_VER, path, mode, &dev);
+ return __mknodat (AT_FDCWD, path, mode, dev);
}
libc_hidden_def (__mknod)
weak_alias (__mknod, mknod)