From 92337b15a2414c5ead6dde55b366687ec464b847 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 17 Apr 2023 23:59:03 +0200 Subject: [PATCH] Make getprogname() porting mandatory Although the function is documented as possibly returning NULL if it cannot find a known source of information, we should still at least attempt to port it to any supported system, and otherwise explicitly mark it as not implementable for such systems if that was to be the case. --- src/progname.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/progname.c b/src/progname.c index bebf714..b62ecd4 100644 --- a/src/progname.c +++ b/src/progname.c @@ -126,6 +126,8 @@ done: free(wpath); free(mbname); } +#else +#error "Function getprogname() needs to be ported." #endif return __progname;