fix: macOS bcopy conflict and Docker host binding

- Fix #11: Guard bcopy/bzero declarations with _VISUALCPP in commoninclude.h
  to avoid redefinition errors on macOS where <strings.h> provides them
- Fix #12: Add --host flag to serve command, default 127.0.0.1
  Docker now binds to 0.0.0.0 so Colima can reach the server from host
- Also fix truncate() panic when n < 3
This commit is contained in:
2026-06-21 21:40:41 -07:00
parent 649a73984d
commit 48d6d8c4d3
4 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -34,4 +34,4 @@ COPY scripts/extract_wavs.sh /usr/local/bin/
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["fetch"]
CMD ["serve", "-p", "8080"]
CMD ["serve", "-p", "8080", "--host", "0.0.0.0"]