patch-tirpc_misc_event_h 593 B

123456789101112131415161718192021222324
  1. --- libtirpc-0.2.3.orig/tirpc/misc/event.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/misc/event.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -186,15 +186,18 @@ extern int kqueue_del_filteropts(int fil
  4. #else /* !_KERNEL */
  5. -#include <sys/cdefs.h>
  6. struct timespec;
  7. -__BEGIN_DECLS
  8. +#ifdef __cplusplus
  9. +extern "C" {
  10. +#endif
  11. int kqueue(void);
  12. int kevent(int kq, const struct kevent *changelist, int nchanges,
  13. struct kevent *eventlist, int nevents,
  14. const struct timespec *timeout);
  15. -__END_DECLS
  16. +#ifdef __cplusplus
  17. +}
  18. +#endif
  19. #endif /* !_KERNEL */