aports/testing/goomwwm/basename.patch
Celeste 7ebed71661 testing/goomwwm: fix build with gcc 14
the usual implicit declaration of basename error

also, remove empty depends= and default builddir=
2024-09-30 08:01:25 +00:00

13 lines
337 B
Diff

diff --git a/rule.c b/rule.c
index c2077d20d..31f0478ca 100644
--- a/rule.c
+++ b/rule.c
@@ -24,6 +24,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
+
// load a rule specified on cmd line or .goomwwmrc
int rule_parse(char *rulestr)
{