Missing type `bool` in list_head.h
안녕하세요?
OS-PA1 레포지토리에 포함된 list_head.h 를 사용하려고 할 때, 아래와 같은 에러가 발생하며 컴파일 에러가 발생하고 있습니다.
temp@minseolee-macbookair os-pa1 % ./run.sh
rm -rf mash toy pipe *.o *.dSYM
gcc -g -c -D_POSIX_C_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -std=c99 -Wall -Wextra -Wno-unused-parameter -Werror pa1.c -o pa1.o
In file included from pa1.c:21:
./list_head.h:736:15: error: unknown type name 'bool'
static inline bool hlist_fake(struct hlist_node *h)
^
./list_head.h:745:15: error: unknown type name 'bool'
static inline bool
^
2 errors generated.
make: *** [pa1.o] Error 1
OS-PA0의 types.h 와 같은 파일이 포함되어있어있지 않아 발생하고 있는 것 같습니다.
// OS-PA0 types.h line 19-21
...
typedef unsigned char bool;
#define true 1
#define false 0
...
해당 내용을 수정하여 Merge Request 드리고자 하였으나, 현재 이 레포지토리의 fork가 비활성화되어있는 것 같아 이렇게 이슈 남깁니다.
감사합니다.