diff --git a/AK/SharedBuffer.cpp b/AK/SharedBuffer.cpp index 52056d28466..528b68e54aa 100644 --- a/AK/SharedBuffer.cpp +++ b/AK/SharedBuffer.cpp @@ -24,6 +24,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef __serenity__ + #include #include #include @@ -121,3 +123,5 @@ bool SharedBuffer::set_nonvolatile() } } + +#endif diff --git a/AK/SharedBuffer.h b/AK/SharedBuffer.h index 44a20d18411..7db8bae7e42 100644 --- a/AK/SharedBuffer.h +++ b/AK/SharedBuffer.h @@ -26,6 +26,8 @@ #pragma once +#ifdef __serenity__ + #include #include @@ -58,3 +60,5 @@ private: } using AK::SharedBuffer; + +#endif