Add sys/types

This commit is contained in:
Asbjørn Pettersen 1999-04-25 19:30:31 +00:00
parent f768f07525
commit 491c58dba0
4 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,10 @@
Sun Apr 25 21:25:23 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
* plug-ins/script-fu/script-fu-scripts.c: Add <sys/types.h>.
Use G_SEARCHPATH_SEPARATOR_S instead of ":".
* plug-ins/script-fu/script-fu-console.c: Add <sys/types.h>
Sun Apr 25 16:59:09 BST 1999 Adam D. Moss <adam@gimp.org>
* plug-ins/gif/gif.c: Save the comment back onto the image

View File

@ -19,6 +19,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>

View File

@ -19,6 +19,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <ctype.h> /* For toupper() */
@ -303,7 +304,7 @@ script_fu_find_scripts ()
next_token = local_path;
token = strtok (next_token, ":");
token = strtok (next_token, G_SEARCHPATH_SEPARATOR_S);
while (token)
{
@ -346,6 +347,9 @@ script_fu_find_scripts ()
if (!my_err && S_ISREG (filestat.st_mode))
{
#ifdef __EMX__
_fnslashify(filename);
#endif
command = g_new (char, strlen ("(load \"\")") + strlen (filename) + 1);
sprintf (command, "(load \"%s\")", filename);
@ -364,7 +368,7 @@ script_fu_find_scripts ()
g_free (path);
token = strtok (NULL, ":");
token = strtok (NULL, G_SEARCHPATH_SEPARATOR_S);
} /* while */
g_free(local_path);

View File

@ -19,6 +19,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <ctype.h> /* For toupper() */
@ -303,7 +304,7 @@ script_fu_find_scripts ()
next_token = local_path;
token = strtok (next_token, ":");
token = strtok (next_token, G_SEARCHPATH_SEPARATOR_S);
while (token)
{
@ -346,6 +347,9 @@ script_fu_find_scripts ()
if (!my_err && S_ISREG (filestat.st_mode))
{
#ifdef __EMX__
_fnslashify(filename);
#endif
command = g_new (char, strlen ("(load \"\")") + strlen (filename) + 1);
sprintf (command, "(load \"%s\")", filename);
@ -364,7 +368,7 @@ script_fu_find_scripts ()
g_free (path);
token = strtok (NULL, ":");
token = strtok (NULL, G_SEARCHPATH_SEPARATOR_S);
} /* while */
g_free(local_path);