Browse Source

package: cfgfs: Fix for compiling with gcc-14

The asprintf() function is not exported unless _GNU_SOURCE has been
defined.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
65644d7bfa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/cfgfs/src/ft_pack.c

+ 1 - 0
package/cfgfs/src/ft_pack.c

@@ -21,6 +21,7 @@
  * the possibility of such damage or existence of a defect.
  */
 
+#define _GNU_SOURCE
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <fcntl.h>