diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-06-24 10:25:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-28 13:10:01 +0200 |
commit | f0fc2c0e0242260dc75c981500803e983adba91e (patch) | |
tree | 93feaaa29904b6a5f863e23ba180f268c8358502 /cpukit/libnetworking/machine | |
parent | libnetworking: Import current <arpa/inet.h> (diff) | |
download | rtems-f0fc2c0e0242260dc75c981500803e983adba91e.tar.bz2 |
libnetworking: Add <machine/_align.h>
This is necessary for new <sys/socket.h>.
Diffstat (limited to 'cpukit/libnetworking/machine')
-rw-r--r-- | cpukit/libnetworking/machine/_align.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpukit/libnetworking/machine/_align.h b/cpukit/libnetworking/machine/_align.h new file mode 100644 index 0000000000..fa26a54f6a --- /dev/null +++ b/cpukit/libnetworking/machine/_align.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2016 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _MACHINE_INCLUDE__ALIGN_H_ +#define _MACHINE_INCLUDE__ALIGN_H_ + +#include <sys/_types.h> + +#define _ALIGNBYTES (sizeof(long long) - 1) +#define _ALIGN(_p) (((__uintptr_t)(_p) + _ALIGNBYTES) & ~_ALIGNBYTES) + +#endif /* !_MACHINE_INCLUDE__ALIGN_H_ */ |