Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 13:38:15 +0000 (UTC)
From:      Doug Rabson <dfr@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239061 - head/include/gssapi
Message-ID:  <201208051338.q75DcF37088561@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dfr
Date: Sun Aug  5 13:38:15 2012
New Revision: 239061
URL: http://svn.freebsd.org/changeset/base/239061

Log:
  Reduce namespace pollution from gssapi.h
  
  MFC after:	2 weeks

Modified:
  head/include/gssapi/gssapi.h

Modified: head/include/gssapi/gssapi.h
==============================================================================
--- head/include/gssapi/gssapi.h	Sun Aug  5 12:57:38 2012	(r239060)
+++ head/include/gssapi/gssapi.h	Sun Aug  5 13:38:15 2012	(r239061)
@@ -31,15 +31,13 @@
 #ifndef _GSSAPI_GSSAPI_H_
 #define _GSSAPI_GSSAPI_H_
 
-/*
- * First, include stddef.h to get size_t defined.
- */
-#include <stddef.h>
+#include <sys/cdefs.h>
+#include <sys/_types.h>
 
-/*
- * Include stdint.h to get explicitly sized data types.
- */
-#include <stdint.h>
+#ifndef _SIZE_T_DECLARED
+typedef	__size_t	size_t;
+#define	_SIZE_T_DECLARED
+#endif
 
 #ifndef _SSIZE_T_DECLARED
 typedef	__ssize_t	ssize_t;
@@ -67,7 +65,7 @@ typedef struct _gss_name_t *gss_name_t;
  * unsigned integer supported by the platform that has at least
  * 32 bits of precision.
  */
-typedef uint32_t gss_uint32;
+typedef __uint32_t gss_uint32;
 
 
 #ifdef OM_STRING
@@ -89,7 +87,7 @@ typedef OM_object_identifier gss_OID_des
  */
 
 typedef gss_uint32 OM_uint32;
-typedef uint64_t OM_uint64;
+typedef __uint64_t OM_uint64;
 
 typedef struct gss_OID_desc_struct {
   OM_uint32 length;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208051338.q75DcF37088561>