check for process.h, declares getpid() on Windows

Original commit message from CVS:

* configure.ac:
* win32/common/config.h:
* win32/common/config.h.in:
check for process.h, declares getpid() on Windows
* gst/gstinfo.c:
include process.h if we have it
* gst/gstmemchunk.c: (populate), (gst_mem_chunk_new):
* gst/gstmemchunk.h:
fix signedness issues
* win32/common/libgstreamer.def:
fix get_type's
This commit is contained in:
Thomas Vander Stichele 2005-10-16 10:38:02 +00:00
parent 7490994ce6
commit 593932d3ed
8 changed files with 34 additions and 9 deletions

View file

@ -1,3 +1,17 @@
2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
* win32/common/config.h:
* win32/common/config.h.in:
check for process.h, declares getpid() on Windows
* gst/gstinfo.c:
include process.h if we have it
* gst/gstmemchunk.c: (populate), (gst_mem_chunk_new):
* gst/gstmemchunk.h:
fix signedness issues
* win32/common/libgstreamer.def:
fix get_type's
2005-10-16 Julien MOUTTE <julien@moutte.net>
* gst/gstcaps.c: (gst_caps_intersect): Fix a bad bug with a simple

View file

@ -260,6 +260,7 @@ dnl Check for ucontext.h
AC_CHECK_HEADERS([ucontext.h])
AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
AC_CHECK_HEADERS([process.h])
dnl *** checks for library functions ***

View file

@ -92,20 +92,23 @@
#ifndef GST_DISABLE_GST_DEBUG
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
# include <dlfcn.h>
#endif
#ifdef HAVE_PRINTF_EXTENSION
#include <printf.h>
# include <printf.h>
#endif
#include <stdio.h> /* fprintf */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
# include <unistd.h> /* getpid on UNIX */
#endif
#ifdef HAVE_PROCESS_H
# include <process.h> /* getpid on win32 */
#endif
#include <string.h> /* G_VA_COPY */
#include "gst_private.h"
#include "gstutils.h"
#ifdef HAVE_VALGRIND
#include <valgrind/valgrind.h>
# include <valgrind/valgrind.h>
#endif
#include <glib/gprintf.h> /* g_sprintf */

View file

@ -83,7 +83,7 @@ static gboolean
populate (GstMemChunk * mem_chunk)
{
guint8 *area;
gint i;
guint i;
if (mem_chunk->cleanup)
return FALSE;
@ -125,7 +125,7 @@ populate (GstMemChunk * mem_chunk)
* MT safe.
*/
GstMemChunk *
gst_mem_chunk_new (gchar * name, gint atom_size, gulong area_size, gint type)
gst_mem_chunk_new (gchar * name, guint atom_size, gulong area_size, gint type)
{
GstMemChunk *mem_chunk;

View file

@ -32,7 +32,7 @@ G_BEGIN_DECLS
typedef struct _GstMemChunk GstMemChunk;
GstMemChunk* gst_mem_chunk_new (gchar *name,
gint atom_size,
guint atom_size,
gulong area_size,
gint type);

View file

@ -126,6 +126,9 @@
/* Defined if we have register_printf_function () */
#undef HAVE_PRINTF_EXTENSION
/* Define to 1 if you have the <process.h> header file. */
#define HAVE_PROCESS_H 1
/* Define if RDTSC is available */
#undef HAVE_RDTSC

View file

@ -126,6 +126,9 @@
/* Defined if we have register_printf_function () */
#undef HAVE_PRINTF_EXTENSION
/* Define to 1 if you have the <process.h> header file. */
#define HAVE_PROCESS_H 1
/* Define if RDTSC is available */
#undef HAVE_RDTSC

View file

@ -157,11 +157,12 @@ EXPORTS
gst_caps_is_fixed
gst_caps_to_string
gst_caps_from_string
gst_list_get_type
gst_fourcc_get_type
gst_double_range_get_type
gst_fourcc_get_type
gst_int_range_get_type
gst_fraction_get_type
gst_value_list_get_type
gst_value_array_get_type
gst_structure_new
gst_caps_new_full
gst_caps_append