summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstddjb/gol.c2
-rw-r--r--src/libstddjb/iopause_select.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libstddjb/gol.c b/src/libstddjb/gol.c
index e61d7f3..4b5167c 100644
--- a/src/libstddjb/gol.c
+++ b/src/libstddjb/gol.c
@@ -38,7 +38,7 @@ int gol (char const *const *argv, unsigned int argc, gol_bool const *b, unsigned
for (; j < an ; j++) if (*p == a[j].so) break ;
if (j < an)
{
- if (p[1]) ar[a[j].i] == p + 1 ;
+ if (p[1]) ar[a[j].i] = p + 1 ;
else if (i+1 < argc && strcmp(argv[i+1], "--")) ar[a[j].i] = argv[++i] ;
break ;
}
diff --git a/src/libstddjb/iopause_select.c b/src/libstddjb/iopause_select.c
index ec439d6..f2deba2 100644
--- a/src/libstddjb/iopause_select.c
+++ b/src/libstddjb/iopause_select.c
@@ -1,9 +1,12 @@
/* ISC license. */
#include <skalibs/bsdsnowflake.h>
+
#include <string.h> /* Solaris... */
#include <errno.h>
+#include <sys/time.h> /* MacOS... */
#include <sys/select.h>
+
#include <skalibs/tai.h>
#include <skalibs/iopause.h>