Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* local.c -- dungeon functions which need local definition */

#include "funcs.h"

#include <unistd.h> // this header allows us to use the getuid function(without which it declared an implicit declaration error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think since getuid is only used when unix is defined it makes sense to do the same here:

Suggested change
#include <unistd.h> // this header allows us to use the getuid function(without which it declared an implicit declaration error)
#ifdef unix
#include <unistd.h>
#endif

#ifdef __AMOS__
#include <moncal.h>
#endif
Expand Down