fiber.cc (13435:18fc735cae14) fiber.cc (13476:04bf50476e37)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 19 unchanged lines hidden (view full) ---

28 */
29
30#include "base/fiber.hh"
31
32#if HAVE_VALGRIND
33#include <valgrind/valgrind.h>
34#endif
35
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 19 unchanged lines hidden (view full) ---

28 */
29
30#include "base/fiber.hh"
31
32#if HAVE_VALGRIND
33#include <valgrind/valgrind.h>
34#endif
35
36// Mac OS requires _DARWIN_C_SOURCE if _POSIX_C_SOURCE is defined,
37// otherwise it will mask the definition of MAP_ANONYMOUS.
38// _POSIX_C_SOURCE is already defined by including <ucontext.h> in
39// base/fiber.hh
40#if defined(__APPLE__) && defined(__MACH__)
41#define _DARWIN_C_SOURCE
42#endif
43
36#include <sys/mman.h>
37#include <unistd.h>
38
39#include <cerrno>
40#include <cstdio>
41#include <cstring>
42
43#include "base/logging.hh"

--- 133 unchanged lines hidden ---
44#include <sys/mman.h>
45#include <unistd.h>
46
47#include <cerrno>
48#include <cstdio>
49#include <cstring>
50
51#include "base/logging.hh"

--- 133 unchanged lines hidden ---