Commits

paulc committed 993c241

Misc include fixes

  • Participants
  • Parent commits 81c1a98

Comments (0)

Files changed (2)

 DEBUG ?= -g -rdynamic -ggdb
 
 OBJ = blowfish.o sds.o zmalloc.o sdsutils.o slre.o sha256.o lzf_c.o lzf_d.o adlist.o
-LIB = libsdsutil.a
+LIB = libutil.a
 PROGS = int64 re readfile encrypt split
 
-all : $(PROGS)
+all : $(PROGS) $(LIB)
 
 # Deps (from 'make dep')
 adlist.o: adlist.c adlist.h zmalloc.h
 #ifndef _SDSUTILS_H
 #define _SDSUTILS_H
 
+#include <stdio.h>
+#include <stdint.h>
+#include <sys/types.h>
+
 #include "adlist.h"
 #include "blowfish.h"
 #include "lzf.h"
 #include "slre.h"
 #include "zmalloc.h"
 
-#include <stdio.h>
-#include <stdint.h>
-
 int char_count(char *s, char c);
 int sdscount(sds s,char c);
 int sdsstartswith(sds s,sds prefix);