0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/octave/0003-undefine-the-macro-in-pwd.h.patch
2024-10-23 11:17:19 +03:00

18 lines
292 B
Diff

+++ ./liboctave/wrappers/pwd-wrappers.c
@@ -32,6 +32,15 @@
#if defined (HAVE_PWD_H)
# include <pwd.h>
+# ifdef getpwnam
+# undef getpwnam
+# endif
+# ifdef getpwuid
+# undef getpwuid
+# endif
+# ifdef getpwuid_r
+# undef getpwuid_r
+# endif
#endif
#include "pwd-wrappers.h"