Skip to content

Commit

Permalink
Fix sparc build with older compilers.
Browse files Browse the repository at this point in the history
	* sysdeps/generic/memcopy.h: Add multiple inclusion protection.
  • Loading branch information
David S. Miller committed Dec 4, 2012
1 parent c33aa6e commit c8df52e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2012-12-04 David S. Miller <davem@abraco.davemloft.net>

* sysdeps/generic/memcopy.h: Add multiple inclusion protection.

2012-12-04 Joseph Myers <joseph@codesourcery.com>

* sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
Expand Down
7 changes: 6 additions & 1 deletion sysdeps/generic/memcopy.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* memcopy.h -- definitions for memory copy functions. Generic C version.
Copyright (C) 1991, 1992, 1993, 1997, 2004 Free Software Foundation, Inc.
Copyright (C) 1991, 1992, 1993, 1997, 2004, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
Expand All @@ -17,6 +17,9 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#ifndef _MEMCOPY_H
#define _MEMCOPY_H 1

/* The strategy of the memory functions is:
1. Copy bytes until the destination pointer is aligned.
Expand Down Expand Up @@ -144,3 +147,5 @@ extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t) __THROW;

/* Threshold value for when to enter the unrolled loops. */
#define OP_T_THRES 16

#endif /* memcopy.h */

0 comments on commit c8df52e

Please sign in to comment.