From 32bc8138101e01482000a980e1473cc77e8cff28 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Dec 2007 12:20:37 +0000 Subject: RPMERR_* doesn't exist anymore in rpm.org HEAD (nb: this code (rpmErrorWriteTo) is currently only used by Drakx) --- URPM.xs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/URPM.xs b/URPM.xs index fb49bde..da0067b 100644 --- a/URPM.xs +++ b/URPM.xs @@ -136,7 +136,9 @@ static const void* unused_variable(const void *p) { static int rpmError_callback_data; void rpmError_callback() { +#ifndef RPM_ORG if (rpmErrorCode() != RPMERR_UNLINK && rpmErrorCode() != RPMERR_RMDIR) +#endif write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage())); } -- cgit v1.2.1