Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/lib/libled_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ led_status_t device_exclude_pattern_add(struct led_ctx *ctx, const char *path);
*/
void lib_log(struct led_ctx *ctx, enum led_log_level_enum loglevel, const char *buf, ...)
__attribute__ ((format (printf, 3, 4)));

/*
* Ensure GNU basename behavior on GLIBC less systems.
*/
#ifndef __GLIBC__
#define basename(path) \
(strrchr((path), '/') ? strrchr((path), '/') + 1 : (path))
#endif

#endif
Loading