Added #ifdef wrapping to prevent double function definitions
authorDavide Libenzi <dlibenzi@google.com>
Fri, 16 Oct 2015 16:37:13 +0000 (09:37 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 30 Oct 2015 20:02:29 +0000 (16:02 -0400)
Added #ifdef wrapping to prevent double function definitions, which
were triggered by umem.h usage in uaccess.h

Signed-off-by: Davide Libenzi <dlibenzi@google.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/umem.h

index d35f05c..21c6484 100644 (file)
@@ -5,6 +5,9 @@
  *
  * Functions for working with userspace's address space. */
 
+#ifndef ROS_KERN_UMEM_H
+#define ROS_KERN_UMEM_H
+
 #include <ros/common.h>
 #include <process.h>
 
@@ -77,3 +80,5 @@ static inline bool is_user_raddr(void *addr, size_t len)
 {
        return __is_user_addr(addr, len, ULIM);
 }
+
+#endif /* ROS_KERN_UMEM_H */