stdint.h - Samba

This is a discussion on stdint.h - Samba ; We have a lot of files that include stdint.h without the #if HAVE_STDINT_H Most look to be pidl generated files except for the first. source/lib/socket_wrapper/socket_wrapper.c:#include source/librpc/gen_ndr/dfs.h:#include source/librpc/gen_ndr/dssetup.h:#include source/librpc/gen_ndr/echo.h:#include source/librpc/gen_ndr/epmapper.h:#include source/librpc/gen_ndr/eventlog.h:#include source/librpc/gen_ndr/initshutdown.h:#include source/librpc/gen_ndr/krb5pac.h:#include source/librpc/gen_ndr/libnet_join.h:#include source/librpc/gen_ndr/libnetapi.h:#include source/librpc/gen_ndr/lsa.h:#include source/librpc/gen_ndr/messaging.h:#include source/librpc/gen_ndr/misc.h:#include source/librpc/gen_ndr/nbt.h:#include source/librpc/gen_ndr/netlogon.h:#include source/librpc/gen_ndr/notify.h:#include ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: stdint.h

  1. stdint.h

    We have a lot of files that include stdint.h without
    the #if HAVE_STDINT_H

    Most look to be pidl generated files except for the first.

    source/lib/socket_wrapper/socket_wrapper.c:#include
    source/librpc/gen_ndr/dfs.h:#include
    source/librpc/gen_ndr/dssetup.h:#include
    source/librpc/gen_ndr/echo.h:#include
    source/librpc/gen_ndr/epmapper.h:#include
    source/librpc/gen_ndr/eventlog.h:#include
    source/librpc/gen_ndr/initshutdown.h:#include
    source/librpc/gen_ndr/krb5pac.h:#include
    source/librpc/gen_ndr/libnet_join.h:#include
    source/librpc/gen_ndr/libnetapi.h:#include
    source/librpc/gen_ndr/lsa.h:#include
    source/librpc/gen_ndr/messaging.h:#include
    source/librpc/gen_ndr/misc.h:#include
    source/librpc/gen_ndr/nbt.h:#include
    source/librpc/gen_ndr/netlogon.h:#include
    source/librpc/gen_ndr/notify.h:#include
    source/librpc/gen_ndr/ntsvcs.h:#include
    source/librpc/gen_ndr/samr.h:#include
    source/librpc/gen_ndr/security.h:#include
    source/librpc/gen_ndr/srvsvc.h:#include
    source/librpc/gen_ndr/svcctl.h:#include
    source/librpc/gen_ndr/winreg.h:#include
    source/librpc/gen_ndr/wkssvc.h:#include
    source/librpc/gen_ndr/xattr.h:#include


  2. Re: stdint.h

    On Wed, Jul 02, 2008 at 10:19:59AM -0700, Herb Lewis wrote:
    > We have a lot of files that include stdint.h without
    > the #if HAVE_STDINT_H
    >
    > Most look to be pidl generated files except for the first.


    This one only #includes if !defined(_SAMBA_BUILD_).

    > source/lib/socket_wrapper/socket_wrapper.c:#include


    The following should get fixed - they use stdint to
    get definitions for uint32_t etc. which they depend
    on.

    > source/librpc/gen_ndr/dfs.h:#include
    > source/librpc/gen_ndr/dssetup.h:#include
    > source/librpc/gen_ndr/echo.h:#include
    > source/librpc/gen_ndr/epmapper.h:#include
    > source/librpc/gen_ndr/eventlog.h:#include
    > source/librpc/gen_ndr/initshutdown.h:#include
    > source/librpc/gen_ndr/krb5pac.h:#include
    > source/librpc/gen_ndr/libnet_join.h:#include
    > source/librpc/gen_ndr/libnetapi.h:#include
    > source/librpc/gen_ndr/lsa.h:#include
    > source/librpc/gen_ndr/messaging.h:#include
    > source/librpc/gen_ndr/misc.h:#include
    > source/librpc/gen_ndr/nbt.h:#include
    > source/librpc/gen_ndr/netlogon.h:#include
    > source/librpc/gen_ndr/notify.h:#include
    > source/librpc/gen_ndr/ntsvcs.h:#include
    > source/librpc/gen_ndr/samr.h:#include
    > source/librpc/gen_ndr/security.h:#include
    > source/librpc/gen_ndr/srvsvc.h:#include
    > source/librpc/gen_ndr/svcctl.h:#include
    > source/librpc/gen_ndr/winreg.h:#include
    > source/librpc/gen_ndr/wkssvc.h:#include
    > source/librpc/gen_ndr/xattr.h:#include


    Jeremy.


  3. Re: stdint.h

    Hi Herb,

    Am Mittwoch, den 02.07.2008, 10:19 -0700 schrieb Herb Lewis:
    > We have a lot of files that include stdint.h without
    > the #if HAVE_STDINT_H
    >
    > Most look to be pidl generated files except for the first.

    libreplace generates a replacement file for stdint.h and stdbool.h
    during configure if the system doesn't provide them.

    Cheers,

    Jelmer
    --
    Jelmer Vernooij - http://samba.org/~jelmer/
    Jabber: jelmer@jabber.fsfe.org

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iJwEAAECAAYFAkhsGlAACgkQDLQl4QYPZuXWQAP/Qkv/XnaURByh1cz88dWjq7jl
    TrKsLzfTzNM1hd1tagdxtvBIQxkHJKRCP+Jsj+r5TtcXLboz+h CnzXs3WYI6HhHP
    pzU0vaDBIEfhSHZqbkchOjLyGuGXM1XcLPnBrAl2QJXrb4W9kf Zc//OzI64fqz1j
    yP6q+Bl72NuNOJ6wys4=
    =t4u4
    -----END PGP SIGNATURE-----


+ Reply to Thread