portability

diff --git a/skeletons/UTCTime.c b/skeletons/UTCTime.c
index e15cca9..7d97117 100644
--- a/skeletons/UTCTime.c
+++ b/skeletons/UTCTime.c
@@ -46,7 +46,8 @@
 	errno = EPERM;			/* Just an unlikely error code */
 	tloc = asn_UT2time(st, 0, 0);
 	if(tloc == -1 && errno != EPERM) {
-		_ASN_ERRLOG("%s: Invalid time format: %s",
+		_ASN_ERRLOG(app_errlog, app_key,
+			"%s: Invalid time format: %s",
 			td->name, strerror(errno));
 		return -1;
 	}