Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
libtirpc.24713
003-rpc-types.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 003-rpc-types.patch of Package libtirpc.24713
From cc6d414c93d05da7703c377dd7524fd97719b21c Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk <kukuk@thkukuk.de> Date: Mon, 13 Nov 2017 15:50:32 +0100 Subject: [PATCH 1/1] Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990 Signed-off-by: Thorsten Kukuk <kukuk@suse.de> --- tirpc/rpc/types.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tirpc/rpc/types.h b/tirpc/rpc/types.h index 52c30a2..f069efa 100644 --- a/tirpc/rpc/types.h +++ b/tirpc/rpc/types.h @@ -65,6 +65,28 @@ typedef int32_t rpc_inline_t; #define mem_alloc(bsize) calloc(1, bsize) #define mem_free(ptr, bsize) free(ptr) + +#if defined __APPLE_CC__ || defined __FreeBSD__ +# define __u_char_defined +# define __daddr_t_defined +#endif + +#ifndef __u_char_defined +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +# define __u_char_defined +#endif +#ifndef __daddr_t_defined +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +# define __daddr_t_defined +#endif + #include <sys/time.h> #include <sys/param.h> #include <stdlib.h> -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor