about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-21 14:52:39 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-21 14:52:39 +0000
commitd1462d2e3f8a48eca8018e78b5f250db7cde458d (patch)
treedcef44cad65e653c5cd99372c1c8937175d8e0c2 /sysdeps/mach/hurd
parentc71183402c321cee4486e5d24ef1f82e9dbb111a (diff)
downloadglibc-d1462d2e3f8a48eca8018e78b5f250db7cde458d.tar.gz
glibc-d1462d2e3f8a48eca8018e78b5f250db7cde458d.tar.xz
glibc-d1462d2e3f8a48eca8018e78b5f250db7cde458d.zip
Update.
	* sysdeps/unix/sysv/linux/sys/sysmacros.h: Pretty print.
	* sysdeps/unix/sysv/linux/Dist: Remove sys/sysmacros.h.
	* sysdeps/unix/sysv/linux/Makefile: Remove sys/sysmacros.h.
	* posix/Makefile (headers): Add sys/sysmacros.h.
	* posix/sys/types.h: Include sys/sysmacros.h for __USE_BSD.
	* sysdeps/generic/sys/sysmacros.h: New file.
	* sysdeps/mach/hurd/xmknod.c: Include sys/types.h and remove minor and
	major definition.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/xmknod.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/xmknod.c b/sysdeps/mach/hurd/xmknod.c
index fefc955324..f67218102c 100644
--- a/sysdeps/mach/hurd/xmknod.c
+++ b/sysdeps/mach/hurd/xmknod.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 96, 99 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,10 +23,7 @@
 #include <fcntl.h>
 #include "stdio-common/_itoa.h"
 #include <string.h>
-
-/* Temporary hack; this belongs in a header file, probably types.h. */
-#define major(x) ((int)(((unsigned int) (x) >> 8) & 0xff))
-#define minor(x) ((int)((x) & 0xff))
+#include <sys/types.h>
 
 
 /* Create a device file named FILE_NAME, with permission and special bits MODE