1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Description: Fix FTBFS with -Werror=implicit-function-declaration
Include appropriate headers.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066537
Forwarded: no
Last-Update: 2024-08-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/glTarray.c
+++ b/glTarray.c
@@ -12,6 +12,7 @@
#include "glWrappers.h"
#include <math.h>
#include <stdlib.h>
+#include <stdio.h>
/*
#define CHEK_ERROR(x) yygl_chek_error(x)
--- a/gltexsubs.c
+++ b/gltexsubs.c
@@ -9,6 +9,9 @@
* Read the accompanying LICENSE file for details.
*/
+#define GL_GLEXT_PROTOTYPES
+#include <GL/gl.h>
+#include <GL/glext.h>
#include "glcode.h"
#include "glfunc.h"
#include "glBasic.h"
--- a/slicetree.c
+++ b/slicetree.c
@@ -9,7 +9,7 @@
#include "Contour3D.h"
#include "slicetree.h"
#include <stdlib.h>
-
+#include "binio.h"
/* #include "ydata.h" */
static int t_octant;
--- a/oglx.c
+++ b/oglx.c
@@ -14,7 +14,9 @@
#include "playwin.h"
#include "playgl.h"
+#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
+#include <GL/glxext.h>
/* during debug, generate as many Expose events as possible */
#ifndef P_DEBUG
|