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.
This commit is contained in:
Guillem Jover 2023-04-17 23:59:03 +02:00
parent 90b7f3aeba
commit 92337b15a2

View File

@ -126,6 +126,8 @@ done:
free(wpath);
free(mbname);
}
#else
#error "Function getprogname() needs to be ported."
#endif
return __progname;