chor: removed getopt from non-platform code
authorLukas Krickl <lukas@krickl.dev>
Sun, 22 Feb 2026 19:21:54 +0000 (20:21 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 22 Feb 2026 19:21:54 +0000 (20:21 +0100)
src/lrts.c
src/p_posix/p_getopt.c

index eada0d514712eed2f28d56d6d3b23bce861e716e..202399413393c727128cff8821fe537f5f697983 100644 (file)
@@ -1,6 +1,3 @@
-#include <string.h>
-#include <getopt.h>
-#include <stdlib.h>
 #include "u_stdio.h"
 #include "u_defs.h"
 #include "p_platform.h"
index b9af175e3c9bb2c072ef5c15b1d4e0091546e4b5..102afe80243a203ab75510d7587024391ef669e3 100644 (file)
@@ -1,3 +1,4 @@
+#include <getopt.h>
 
 void lrts_getopt(int argc, char **argv, struct lrts_config *cfg) {
   int c = 0;