SHA256
1
0
forked from pool/libtirpc
libtirpc/015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch
Marcus Meissner 4b133a860c Accepting request 381804 from home:kukuk:NIS
- Add some patches to get libtirpc compiled without needing glibc 
  deprecated functions:
  - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch
  - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch
  - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch
- Add 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch
  to allow bootstrapping of libtirpc without glibc sunrpc code or
  libnsl NIS+ code.

- Add 011-Fix-typo-in-src-libtirpc.map-which-prevents-that-key.patch
  (fix export of key_secretkey_is_set)

- Add the following patches to fix some bugs from the poll()
  port and an endless loop:
  - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch
  - 007-Change-rtime-function-to-use-poll-instead-of-select.patch
  - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch
  - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch
  - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch

- Remove 004-netconfig-prefer-IPv6.patch for SLES12.
- Remove libtirpc-getnetconfig-races.patch (was backport).
  [FATE#320393]

- Drop libtirpc-xdr-header.patch (was backport)
- Fix public xdr.h header - xdr_rpcvers() were broken (bsc#902439)
  Added: libtirpc-xdr-header.patch

- Fix race conditions in getnetconfig (bsc#899576, bsc#882973)
  Added: libtirpc-getnetconfig-races.patch

OBS-URL: https://build.opensuse.org/request/show/381804
OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=57
2016-04-04 11:47:30 +00:00

42 lines
1.0 KiB
Diff

From d5e4d0651f9ecc8e7e4110f080a862746d9baa0a Mon Sep 17 00:00:00 2001
From: Thorsten Kukuk <kukuk@thkukuk.de>
Date: Mon, 14 Mar 2016 13:43:54 +0100
Subject: [PATCH 5/5] Fix includes to compile without deprecated glibc
functions
Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
---
src/des_impl.c | 3 ++-
tirpc/rpc/des.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/des_impl.c b/src/des_impl.c
index c5b7ed6..9dbccaf 100644
--- a/src/des_impl.c
+++ b/src/des_impl.c
@@ -6,7 +6,8 @@
/* see <http://www.gnu.org/licenses/> to obtain a copy. */
#include <string.h>
#include <stdint.h>
-#include <rpc/rpc_des.h>
+#include <sys/types.h>
+#include <rpc/des.h>
static const uint32_t des_SPtrans[8][64] =
diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h
index d2881ad..018aa48 100644
--- a/tirpc/rpc/des.h
+++ b/tirpc/rpc/des.h
@@ -82,6 +82,6 @@ struct desparams {
/*
* Software DES.
*/
-extern int _des_crypt( char *, int, struct desparams * );
+extern int _des_crypt( char *, unsigned, struct desparams * );
#endif
--
1.8.5.6