termux-packages/packages/sc-im/file.c.patch

35 lines
612 B
Diff

--- file.c 2018-02-23 06:39:56.329524606 +0000
+++ src/src/file.c 2018-02-23 06:40:14.550410296 +0000
@@ -53,7 +53,6 @@
#include <unistd.h>
#include <wchar.h>
#include <sys/wait.h>
-#include <wordexp.h>
#include "conf.h"
#include "maps.h"
@@ -82,6 +81,23 @@
extern int pthread_exists;
#endif
+#define WRDE_NOCMD 0
+
+typedef struct {
+ size_t we_wordc;
+ char **we_wordv;
+ size_t we_offs;
+} wordexp_t;
+
+static inline int wordexp(const char *c, wordexp_t *w, int _i)
+{
+ return -1;
+}
+
+static inline void wordfree(wordexp_t *__wordexp)
+{
+}
+
/**
* \brief Erase the database (tbl, etc.)
*