emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autconf bcopy and bzero


From: Tom Tromey
Subject: Re: autconf bcopy and bzero
Date: Sat, 26 Jan 2008 11:54:30 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

>>>>> "Dan" == Dan Nicolaescu <address@hidden> writes:

Dan> uclibc uses #define to define bcopy and bzero in <strings.h>
Dan> emacs' configure script decides that bcopy and bzero are not available
Dan> and then #defines them in config.h. 

Can you look in your config.log to see why the existing bcopy test
failed?  I think it should work ok.

Dan> In file included from frame.c:22:
Dan> ./config.h:1159:1: warning: "bcopy" redefined
Dan> In file included from ./config.h:1096,
Dan>                  from frame.c:22:
Dan> /usr/include/string.h:329:1: warning: this is the location of the
Dan> previous definition

One way to get rid of the warning is to '#undef bcopy' before defining
it.  Alternatively, the code could read:

    #if !defined HAVE_BCOPY && !defined bcopy
    #define bcopy(a,b,s) memcpy (b,a,s)
    #endif

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]