mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
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:
parent
90b7f3aeba
commit
92337b15a2
@ -126,6 +126,8 @@ done:
|
||||
free(wpath);
|
||||
free(mbname);
|
||||
}
|
||||
#else
|
||||
#error "Function getprogname() needs to be ported."
|
||||
#endif
|
||||
|
||||
return __progname;
|
||||
|
Loading…
Reference in New Issue
Block a user