aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/fpscam
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics/fpscam')
-rw-r--r--examples/graphics/fpscam/clip.h1
-rw-r--r--examples/graphics/fpscam/lookat.h1
-rw-r--r--examples/graphics/fpscam/main.c5
3 files changed, 5 insertions, 2 deletions
diff --git a/examples/graphics/fpscam/clip.h b/examples/graphics/fpscam/clip.h
index 3b428bb..4daf47a 100644
--- a/examples/graphics/fpscam/clip.h
+++ b/examples/graphics/fpscam/clip.h
@@ -1,6 +1,7 @@
#ifndef _CLIP_H
#define _CLIP_H
+#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>
diff --git a/examples/graphics/fpscam/lookat.h b/examples/graphics/fpscam/lookat.h
index c57e50a..4b10596 100644
--- a/examples/graphics/fpscam/lookat.h
+++ b/examples/graphics/fpscam/lookat.h
@@ -1,6 +1,7 @@
#ifndef _LOOKAT_H
#define _LOOKAT_H
+#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>
diff --git a/examples/graphics/fpscam/main.c b/examples/graphics/fpscam/main.c
index 9dedf06..a009a65 100644
--- a/examples/graphics/fpscam/main.c
+++ b/examples/graphics/fpscam/main.c
@@ -33,7 +33,8 @@
* Sep 24, 2019 - Added camera position display and _boot() exit.
*
*/
-
+
+#include <sys/types.h>
#include <stdio.h>
#include <psxgpu.h>
#include <psxgte.h>
@@ -62,7 +63,7 @@
typedef struct {
DISPENV disp; // Display environment
DRAWENV draw; // Drawing environment
- int ot[OT_LEN]; // Ordering table
+ u_long ot[OT_LEN]; // Ordering table
char p[PACKET_LEN]; // Packet buffer
} DB;