slirp: replace SIZEOF_CHAR_P with glib equivalent
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 14 Nov 2018 12:36:27 +0000 (16:36 +0400)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Jan 2019 23:40:54 +0000 (00:40 +0100)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/ip.h
slirp/slirp_config.h

index 83fc9cdfbf61d00b2cfd5f3efe4aa905be6dd765..243b6c8b249d864bce689dd94ee997f73bf76ad9 100644 (file)
@@ -177,7 +177,7 @@ struct      ip_timestamp {
 
 #define        IP_MSS          576             /* default maximum segment size */
 
-#if SIZEOF_CHAR_P == 4
+#if GLIB_SIZEOF_VOID_P == 4
 struct mbuf_ptr {
        struct mbuf *mptr;
        uint32_t dummy;
index b2def6d20c127cd174a3d51c389b261a24a84398..7147e0de04aaf9bacd1a34385fa58b57b5569f31 100644 (file)
@@ -10,6 +10,3 @@
  * Autoconf defined configuration options
  * You shouldn't need to touch any of these
  */
-
-/* Define to sizeof(char *) */
-#define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)