Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2019 19:47:30 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518528 - head/math/curv/files
Message-ID:  <201911271947.xARJlUQd084008@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Nov 27 19:47:30 2019
New Revision: 518528
URL: https://svnweb.freebsd.org/changeset/ports/518528

Log:
  math/curv: fix build on GCC architectures
  
  libcurv/geom/viewer/fbo.cc, libcurv/geom/viewer/mesh.cc, libcurv/geom/viewer/text.cc and libcurv/geom/viewer/vertexLayout.cc need to include sys/types.h to make uint type known. /wrkdirs/usr/ports/math/curv/work/curv-0.4-127-g3caf3068/libcurv/geom/viewer/fbo.cc:42:26: error: 'uint' does not name a type; did you mean 'int'?
  
  PR:             241418
  Approved by:    linimon (mentor), yuri (maintainer)

Added:
  head/math/curv/files/patch-libcurv_viewer_fbo.cc   (contents, props changed)
  head/math/curv/files/patch-libcurv_viewer_mesh.cc   (contents, props changed)
  head/math/curv/files/patch-libcurv_viewer_text.cc   (contents, props changed)
  head/math/curv/files/patch-libcurv_viewer_vertexLayout.cc   (contents, props changed)

Added: head/math/curv/files/patch-libcurv_viewer_fbo.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/curv/files/patch-libcurv_viewer_fbo.cc	Wed Nov 27 19:47:30 2019	(r518528)
@@ -0,0 +1,10 @@
+--- libcurv/viewer/fbo.cc.orig	2019-10-22 18:20:49 UTC
++++ libcurv/viewer/fbo.cc
+@@ -25,6 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
+ 
+ #include "fbo.h"
+ #include <iostream>
++#include <sys/types.h>
+ 
+ Fbo::Fbo():m_id(0), m_old_fbo_id(0), m_texture(0), m_depth_buffer(0), m_width(0), m_height(0), m_allocated(false), m_binded(false) {
+ }

Added: head/math/curv/files/patch-libcurv_viewer_mesh.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/curv/files/patch-libcurv_viewer_mesh.cc	Wed Nov 27 19:47:30 2019	(r518528)
@@ -0,0 +1,10 @@
+--- libcurv/viewer/mesh.cc.orig	2019-10-22 18:21:49 UTC
++++ libcurv/viewer/mesh.cc
+@@ -2,6 +2,7 @@
+ 
+ #include <iostream>
+ #include <fstream> 
++#include <sys/types.h>
+ 
+ //#include "fs.h"
+ #include "geom.h"

Added: head/math/curv/files/patch-libcurv_viewer_text.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/curv/files/patch-libcurv_viewer_text.cc	Wed Nov 27 19:47:30 2019	(r518528)
@@ -0,0 +1,10 @@
+--- libcurv/viewer/text.cc.orig	2019-10-22 18:22:58 UTC
++++ libcurv/viewer/text.cc
+@@ -1,6 +1,7 @@
+ #include "text.h"
+ 
+ #include <algorithm>
++#include <sys/types.h>
+ 
+ std::string getLower(const std::string& _string) {
+     std::string std = _string;

Added: head/math/curv/files/patch-libcurv_viewer_vertexLayout.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/curv/files/patch-libcurv_viewer_vertexLayout.cc	Wed Nov 27 19:47:30 2019	(r518528)
@@ -0,0 +1,9 @@
+--- libcurv/viewer/vertexLayout.cc.orig	2019-10-22 18:23:57 UTC
++++ libcurv/viewer/vertexLayout.cc
+@@ -1,5 +1,6 @@
+ #include "vertexLayout.h"
+ #include "text.h"
++#include <sys/types.h>
+ 
+ std::map<GLint, GLuint> VertexLayout::s_enabledAttribs = std::map<GLint, GLuint>();
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911271947.xARJlUQd084008>