mysys/my_gethwaddr.c

Fix a typing error in a conditional compiling directive
    (reported by Vasil Dimov: Thanks !),
    and improve their nesting ("MAIN" independent of platform).
This commit is contained in:
joerg@trift2. 2007-08-09 14:56:57 +02:00
parent 283e9529fc
commit 3aa40ffa6f

View File

@ -19,7 +19,9 @@
#include "mysys_priv.h"
#include <m_string.h>
#if !defined(__FreeBSD__) || defined(__linux__)
#ifndef MAIN
#if defined(__FreeBSD__) || defined(__linux__)
static my_bool memcpy_and_test(uchar *to, uchar *from, uint len)
{
uint i, res=1;
@ -29,6 +31,7 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len)
res=0;
return res;
}
#endif /* FreeBSD || linux */
#ifdef __FreeBSD__
@ -98,7 +101,7 @@ err:
return res;
}
#else
#else /* FreeBSD elif linux */
/* just fail */
my_bool my_gethwaddr(uchar *to __attribute__((unused)))
{