aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2006-12-05 00:12:02 +0800
committermi <mi@FreeBSD.org>2006-12-05 00:12:02 +0800
commit87ef27e3d1a2477546d1685fd7c1308ae55ce183 (patch)
treed11897d56b123eee5ffc62edcfbf9a077588cf60 /graphics
parentc75c4a44e9c2ca3fc96f81ad3547512f0945ca0e (diff)
downloadfreebsd-ports-gnome-87ef27e3d1a2477546d1685fd7c1308ae55ce183.tar.gz
freebsd-ports-gnome-87ef27e3d1a2477546d1685fd7c1308ae55ce183.tar.zst
freebsd-ports-gnome-87ef27e3d1a2477546d1685fd7c1308ae55ce183.zip
Fix a would-be problem in an #ifdef-ed out section of the patch.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gdtclft/files/patch-gif6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/gdtclft/files/patch-gif b/graphics/gdtclft/files/patch-gif
index 09ca36d3ba0c..866d7608c34a 100644
--- a/graphics/gdtclft/files/patch-gif
+++ b/graphics/gdtclft/files/patch-gif
@@ -127,16 +127,16 @@ Use freely and get yourself a pademelon...
- fileByName++;
- if ((filePtr = fopen(Tcl_GetString(objv[2]),"rb")) == NULL) {
+
-+ if (cmd[10] == 'X' && cmd[11] == 'P' && cmd[12] == 'M')
++ if (cmd[10] == 'X' && cmd[11] == 'P' && cmd[12] == 'M') {
+#ifdef NOX11
+ Tcl_SetResult(interp, "Support for XPM-files not "
-+ "compiled in");
++ "compiled in", TCL_STATIC);
+ return TCL_ERROR;
+#else
+ /* gdImageCreateFromXpm() takes fileNAME */
+ im = gdImageCreateFromXpm(arg2);
+#endif
-+ else {
++ } else {
+ if (Tcl_GetOpenFile(interp, arg2, 0, 1, &clientdata)
+ == TCL_OK) {
+ filePtr = (FILE *)clientdata;