# Some includes giving me trouble right off the bat #AT4

**URL:** <https://forum.codecrafters.io/t/some-includes-giving-me-trouble-right-off-the-bat-at4/772>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [June 19, 2024, 1:08am UTC](https://forum.codecrafters.io/t/some-includes-giving-me-trouble-right-off-the-bat-at4/772 "2024-06-19T01:08:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Refuro](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/refuro/32/704_2.png) [@Refuro](https://forum.codecrafters.io/u/Refuro)\
**Post date:** [June 19, 2024, 1:08am UTC](https://forum.codecrafters.io/t/some-includes-giving-me-trouble-right-off-the-bat-at4/772/1 "2024-06-19T01:08:51Z")

</div>

I have a few includes that are giving me some issues. I started looking around for these files, but found that unistd.h is a unix file. Is this course able to be done in Windows?

```auto
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>

```

---

<div class="post-metadata">

**Author:** ![fre-ros](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/fre-ros/32/528_2.png) [@fre-ros](https://forum.codecrafters.io/u/fre-ros)\
**Post date:** [June 19, 2024, 6:30am UTC](https://forum.codecrafters.io/t/some-includes-giving-me-trouble-right-off-the-bat-at4/772/2 "2024-06-19T06:30:31Z")

</div>

The tests run on linux, you can use wsl on windows and it works fine.

You could make your code work in both windows and linux with preprocessor defines which specify your OS, but that is tedious though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [August 8, 2024, 12:45pm UTC](https://forum.codecrafters.io/t/some-includes-giving-me-trouble-right-off-the-bat-at4/772/3 "2024-08-08T12:45:17Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
