patch-include_rpcsecgss_rpc_rpc_h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- librpcsecgss-0.19.orig/include/rpcsecgss/rpc/rpc.h 2009-07-29 18:24:50.000000000 +0200
  2. +++ librpcsecgss-0.19/include/rpcsecgss/rpc/rpc.h 2014-05-19 15:45:28.866420803 +0200
  3. @@ -67,17 +67,12 @@
  4. * defined by <rpc/netdb.h> included in <netdb.h>.
  5. */
  6. /* routines for parsing /etc/rpc */
  7. -#include <rpc/netdb.h> /* structures and routines to parse /etc/rpc */
  8. -
  9. -__BEGIN_DECLS
  10. +//#include <rpc/netdb.h> /* structures and routines to parse /etc/rpc */
  11. -/* Global variables, protected for multi-threaded applications. */
  12. -extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__));
  13. -#define svc_fdset (*__rpc_thread_svc_fdset ())
  14. +#ifdef __cplusplus
  15. +extern "C" {
  16. +#endif
  17. -extern struct rpc_createerr *__rpc_thread_createerr (void)
  18. - __attribute__ ((__const__));
  19. -#define get_rpc_createerr() (*__rpc_thread_createerr ())
  20. /* The people who "engineered" RPC should bee punished for naming the
  21. data structure and the variable the same. We cannot always define the
  22. macro 'rpc_createerr' because this would prevent people from defining
  23. @@ -94,6 +89,8 @@ extern struct pollfd **__rpc_thread_svc_
  24. extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
  25. #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
  26. -__END_DECLS
  27. +#ifdef __cplusplus
  28. +}
  29. +#endif
  30. #endif /* rpc/rpc.h */