2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>

* libnetworking/kern/kern_sysctl.c: Remove uintptr_t.
	Cosmetics.
	* libnetworking/opt_compat.h: New.
This commit is contained in:
Ralf Corsepius
2004-10-22 14:09:12 +00:00
parent 134191bc99
commit d04ca5a6d9
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org> 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/stdint.h: Add intptr_t uintptr_t. * libcsupport/include/stdint.h: Add intptr_t uintptr_t.
* libnetworking/kern/kern_sysctl.c: Remove uintptr_t.
Cosmetics.
* libnetworking/opt_compat.h: New.
2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org> 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>

View File

@@ -36,10 +36,8 @@
* $FreeBSD: src/sys/kern/kern_sysctl.c,v 1.135 2002/10/27 07:12:34 rwatson Exp $ * $FreeBSD: src/sys/kern/kern_sysctl.c,v 1.135 2002/10/27 07:12:34 rwatson Exp $
*/ */
#ifndef __rtems__
#include "opt_compat.h" #include "opt_compat.h"
#include "opt_mac.h" #include "opt_mac.h"
#endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@@ -74,8 +72,6 @@ static MALLOC_DEFINE(M_SYSCTLTMP, "sysctltmp", "sysctl temp output buffer");
#define M_SYSCTLTMP 2 #define M_SYSCTLTMP 2
#define M_ZERO 0 #define M_ZERO 0
typedef unsigned long *uintptr_t;
#define mtx_lock(l) #define mtx_lock(l)
#define mtx_unlock(l) #define mtx_unlock(l)