+#elif defined(__FreeBSD__)
+int get_pipe_size(void)
+{
+ return 65536;
+}
+#else
+#error "Implement get_pipe_size() for your platform."
+#endif
+} /* namespace */
+
+int main(void)
+{
+ int ret;
+
+ ret = get_pipe_size();
+ if (ret < 0) {
+ return EXIT_FAILURE;
+ }
+
+ /* Print the pipe buffer size to stdout. */
+ printf("%d\n", ret);
+
+ return EXIT_SUCCESS;
+}